Protagonist Posted September 17, 2014 Share Posted September 17, 2014 Hi, I find the dates used in the view ticket list in supportticketslist.tpl and clientareahome.tpl overly long, and would like to shorten the year from YYYY format to YY, so e.g. it's just 14 rather than 2014. The templates use {$ticket.date} to get the ticket date, but I have no idea how to display the date in DD/MM/YY format instead of DD/MM/YYYY Any ideas? Thanks very much. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 17, 2014 Share Posted September 17, 2014 assuming you're using d/m/y and not m/d/y, the quickest way might be to edit the templates and change {$ticket.date} to... {$ticket.date|replace:'/20':'/'} that should remove '20' from the year, but not affect any other part of the date... there are cleverer ways to do it, but they might be overkill for your needs. 0 Quote Link to comment Share on other sites More sharing options...
Protagonist Posted September 17, 2014 Author Share Posted September 17, 2014 Great, will try that thanks. Yes using d/m/y Where is ticket.date defined? View tickets is proving a pain. Think I'm going to modify it to fixed width as the default theme is broken. e.g. the ascending/descending icon shows over the heading - had to add a right margin to fix that, and the view ticket button gets double thickness - really fat, in several cases. The subject text doesn't wrap nicely or truncate. Already applied text overflow and ellipsis to that so is a single line and very long subject titles don't break the formatting. Any advice on fixing view tickets is welcome, perhaps should start a separate topic. Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 17, 2014 Share Posted September 17, 2014 Great, will try that thanks. Yes using d/m/yWhere is ticket.date defined? in the encrypted files. Any advice on fixing view tickets is welcome, perhaps should start a separate topic. you might as well stick to this one, it's more or less the same topic. 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.