Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Meddysong Posted December 10, 2018 Posted December 10, 2018 I'm working on a template for a Pages database and would like to customise how the publish date displays. I know I can use {datetime="$row->record_publish_date"} to get the full date but I'd like to be able to produce the day, month and year components separately. I know a little bit about how PHP formats dates but I'm afraid that I don't know how to apply that knowledge in this environment. Could anybody kindly offer some pointers?
sobrenome Posted July 8, 2019 Posted July 8, 2019 I have a more strange problem. In one database the code works for the date and does not work in another: {datetime="$record->record_publish_date"}
newbie LAC Posted July 8, 2019 Posted July 8, 2019 4 hours ago, sobrenome said: I have a more strange problem. In one database the code works for the date and does not work in another: {datetime="$record->record_publish_date"} {datetime="$record->_publishDate"}
sobrenome Posted July 8, 2019 Posted July 8, 2019 5 hours ago, newbie LAC said: {datetime="$record->_publishDate"} Did not work. 😕
sobrenome Posted July 8, 2019 Posted July 8, 2019 When I do print_r ($record); I get: [record_edit_time] => 1562080148 [record_publish_date] => 1562077740 So the data is there. The problem is with the datetime function: {datetime="$record->record_publish_date"} {datetime="$record->record_edit_time"} How to solve it?
sobrenome Posted July 9, 2019 Posted July 9, 2019 Now it’s working. I suppose was something related to cache. Thanks.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.