-
☆ A M B ☆
- 1,231 Posts
Hi, I keep getting jan 01 70 for published documents in ditto. I have searched the forum and read posts and tried the different calls and it still doesn’t change.
Here is the debug.
In the template i tried both +date and +createdon and both gave the same result.
It would help us to help you if you posted a screen shot of the problem happening, plus the code you’re using - the ditto call in this case.
-
☆ A M B ☆
- 1,231 Posts
I just checked the zip and I understand why you said that! Sorry.
The call I’m using is
[!Ditto? &tpl=`clientTPL` &summarize=`15` &total=`9` &sortBy=`createdon` &sortDir=`ASC` &descendentDepth=`3` !]
[!Reflect? &tpl=`clientTPL` &dateSource=`pub_date` &display=`all` &depth=`2` &sortBy=`pub_date` &getDocuments=`1`!]
-
☆ A M B ☆
- 1,231 Posts
Anyone able to help with this at all? Thanks
From your debug output, I can see the ’createdon’ value of document ID 71 (this must be the child ?) is 18000.
That is really odd...
How about creating another document for your test ?
The best way to overcome this (to convert unix timestamps to human-readable form) is to install phx and format your date placeholders as seen in this example:
[+createdon:date=`%m/%d/%Y`+]
Note: createdon can be replaced by any other date tv; the
%m/%d/%Y date format can be replaced by any other valid combination of PHP date format settings (see
http://us.php.net/manual/en/function.date.php).
------
Server: *nix, ModX Evo 1.0.4, Apache 2.x, PHP 5.x, Mysql 5.x.