Hi using Rev0 2.2.8
I presume I need to change a setting somewhere but when I use [[+publishedon]] in a chunk it just outputs a 0.
Not sure if this is anything to do with it also but under system settings all the dates show as Jan 1 1970 including the ones that have gad settings changed like site name.
Can anyone offer any clues
Many thanks
Ian
[ed. note: ianman last edited this post 13 years, 2 months ago.]
Is your resource published? when it isn't published [[*publishedon]] is supposed to be 0
RDG
-
☆ A M B ☆
- 24,524 Posts
Resource #1, which is installed by default, does not have a "publishedon" date, since it was never actually published.
-
☆ A M B ☆
- 24,524 Posts
Here's a chunk tpl I just tried, using pdoResources (a mostly drop-in replacement for getResources)
<li>[[+pagetitle]] - [[[[+publishedon:is=`0`:then=`+createdon`:else=`+publishedon`]]:date=`%a, %d %b %Y %T`]]</li>
-
☆ A M B ☆
- 24,524 Posts
Ok, if the database is all 0 then you have a problem with recording dates. Check your PHP default_timezone setting; also check your PHP error log to see if you're getting any errors for that.