Changing date format in help center and zendesk?

8 Commentaires

  • Carsten - Proventic.dk
    Community Moderator

    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...

    0
  • Dustin Sigmon

    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>

    0
  • Carsten - Proventic.dk
    Community Moderator

    Try adding "timeago=false"? Might work..

    0
  • Dustin Sigmon

    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.

    0
  • Carsten - Proventic.dk
    Community Moderator

    Hmm... I will look into this when i have the time - If Zendesk doesn't beat me to it :-)

    0
  • Timo Pukki

    At least for my need in similar case the " timeago = false " amendment really hit the spot.

    0
  • Edward Ionescu

    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... 


     

    0
  • Admin
    Community Moderator

    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

    0

Vous devez vous connecter pour laisser un commentaire.

Réalisé par Zendesk