Changing date format in help center and zendesk?
AnsweredIs there a way to change the date format to show the actual date vs "Today" or "Yesterday" and on occasion the days up until it finally switches to showing the actual date? I think it starts doing this after it has been ~7 days.
It would be nice for it to be changed in both the help center and zendesk for agents/admins but I will settle for help center only.
-
Hi Dustin
In the HelpCenter you can change this by removing "timeago=true" on your datestamps. Ie on the request list page you change {{date created_at timeago=true}} to {{date created_at}}. Then it will show you the exact date instead of x days ago.
I don't think you can change it in the Agent interface though...
-
This appears to briefly work but then reverts back to "timeago" formatting about a second after showing the date.
My theme is based on the Copenhagen one but I don't see any additional things in the CSS or JS that would cause this.
I do see the code you are talking about but oddly enough not on the request page as it seems to use:
<dt>{{t 'requester'}}</dt>
<dd>{{request.requester.name}}</dd><dt>{{t 'created'}}</dt>
<dd>{{date request.created_at}}</dd><dt>{{t 'last_activity'}}</dt>
<dd>{{date request.updated_at}}</dd> -
Try adding "timeago=false"? Might work..
-
It doesn't.
Like I said it briefly works then changes to the "timeago" format regardless.
Something in the CSS or JS is causing it for that theme but I can't find anything that would.
-
Hmm... I will look into this when i have the time - If Zendesk doesn't beat me to it :-)
-
At least for my need in similar case the " timeago = false " amendment really hit the spot.
-
Hello,
It's not working. The same theme, Copenhagen. I tried both timeago=false and removing timeago.
Why does it have to be so complicated and why do we have to struggle with such easy things? I wonder who's reporting after Today and Yesterday instead of an actual date... -
Hi Edward Ionescu
You can use the format attribute to control the display of date and time stamps.
for ex: <dd>{{date request.created_at format='long'}}</dd>
These are the available format option you can use.Check more about date helpers here
Hope this helps!!!
Regards,
Sushant
Post is closed for comments.
8 Comments