-
- 1,118 Posts
Anyone? Surely this is possible? I am a little stumped as to why [[+thislogin:strtotime:date=`%e %B %Y`]] is not working to be honest??? It works in the MODx manager - anyone know where the php template for the edit User view is located? I can then copy how its being used there... e.g. it renders the string into a date format - so it is possible!
-
- 1,118 Posts
MODx core team??? Anyone got the answer for this? Seems a simple one?
"thislogin" is already a timestamp, and doesn't need the strtotime modifier.
-
- 1,118 Posts
Is it??? When it renders into the CSV file I am exporting I get a string - like "1430378328" which should read as "04/30/2015" (like it does in the Manager User view) - It must be possible to change it into DD/MM/YEAR format -as it does it in the manger user view in the Manager???
Is the issue me calling it in via pdoUsers / and or CSV export??
discuss.answer
-
- 5,888 Posts
It is. Exactly what Susan said.
is a unixtime - timestamp and doesn't need the strtotime modifier, but, of course the other part of your modifier:
[[+thislogin:date=`%e %B %Y`]]
if you want it like 04/30/2015, then
[[+thislogin:date=`%d/%m/%Y`]]