Hello,
I have problem with createdon snippet. Its not showing date when I call it anywhere.
Publishedon showing date correctly.
And I just upgraded to Modx 2.5.1 for 2.5.0 and in warning essages, its showing this -
Error updating table for class modUser
Array
(
[0] => 42S21
[1] => 1060
[2] => Duplicate column name 'createdon'
)
Modx manager and front end site working properly after upgrade. But I want to clean out this createdon thing. I think some table problem in database. I don't want to check it out before the suggestion/ help from here.
Help please.
Can you post the code of the createdon snippet? It's not in the extras repository.
Quote from: BobRay at Jul 24, 2016, 12:30 AMCan you post the code of the createdon snippet? It's not in the extras repository.
I am really sorry that i write snippet there. Its default tv tag for date time. Again sorry if im calling it wrong. I'm still learning.
[[*createdon:strtotime:date=`%a %b %e, %Y`]]
And I have
Blogit extra which contains
Collection Extra and I removed Articles extra completely.
I also installed and removed
Flatso Blog Theme Extra which also contains
Collections Extra. I think this messed some tables.
[ed. note: Mayanktaker last edited this post 10 years, 3 months ago.]
discuss.answer
It looks like you're using the format tokens for
strftime, not
date.
Try this:
[[*createdon:strtotime:strftime=`%a %b %e, %Y`]]
Note that %e is not supported on Windows.