I also have a nutty one with dates.
I have a site built in Revo with a large number of resources that where imported from Evo using the amazing Provisioner plugin.
This works from some articles:
1
[[+publishedon:strtotime:date=`%d/%m/%Y`]]
But for some reason older resources (I suspect those imported from Evo) the date comes out as 01/05/9540 or 01/05/0 even after opening the resources chaning the date and resaving.
However this seems to have the opposite effect:
1
[[+publishedon:strftime:date=`%d/%m/%Y`]]
The resources showing incorrect dates now show fine but others so up as 01/01/1970
OK and what is even more odd is that several of page templates have this:
1
[[*publishedon:strtotime:date=`%b %d, %Y`]]
Which seem to consistnetly return the date correctly across all imported Evo docs and new docs.
Using the same call in a chunk to list related pages with the + not * returns a mixed update:
1
[[+publishedon:strtotime:date=`%b %d, %Y`]]
Examples:
Wrong date: Related box in the right hand column of this page:
http://www.centreforcities.org/events/2009/09/28/regions-incorporated/
Correct date:
http://www.centreforcities.org/research/2006/02/22/cityleadership/
Does this mean the issue could be with the way publishedon is called?
The bug is happening in Revo 2.2.6-pl by the way.
Any ideas why?