Web Host Pro Posted September 5, 2017 Share Posted September 5, 2017 All I show is: Posted on Sunday 18th June at 16:48 How can you tell what year is was from? Thanks, Charles 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 5, 2017 Share Posted September 5, 2017 Hi Charles, All I show is: Posted on Sunday 18th June at 16:48How can you tell what year is was from? the quick way would be to edit the viewticket.tpl template in your admin template folder and change... {if $reply.friendlydate} {$_ADMINLANG.support.on} {$reply.friendlydate} to... {if $reply.date} {$_ADMINLANG.support.on} {$reply.date} so that will now show the year, but rather annoyingly shows the time too - two options to fix that, either remove the Smarty line from the template that shows the time... {$_ADMINLANG.support.at} {$reply.friendlytime} or remove the time from the date variable... {if $reply.date} {$_ADMINLANG.support.on} {$reply.date|strstr:' ':true} ... or if you want a clearer date format... {if $reply.date} {$_ADMINLANG.support.on} {$reply.date|replace:'/':'-'|date_format:"l, jS F, Y"} now the lengthier solution would be to modify the friendlydate values in the array using an action hook - but that's going to need more than one line of code! 0 Quote Link to comment Share on other sites More sharing options...
Web Host Pro Posted September 7, 2017 Author Share Posted September 7, 2017 Perfect, thanks! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.