Page 1 of 1

Change Hesk Style date format to AM/PM

Posted: Sat Oct 15, 2016 4:19 pm
by Lisaweb
Script URL:
Version of script: 2.7.0 beta 2
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: time format change, hesk style time

Write your message below:

I really like the "Hesk style" time formatting - but how can I change it so it will display AM/PM instead of military time? Thanks!

Re: Change Hesk Style date format to AM/PM

Posted: Sun Oct 16, 2016 1:54 am
by mkoch227
If you want to use 12-hour time instead of 24-hour time, make the following changes to the "Time Format" setting:
  • Instead of 'H' for hours, use 'g' or 'G' (exclude quotes of course). g is "12-hour format without leading zero" and G is "12-hour format with leading zero"
  • Add 'a' at the end for 'am'/'pm', or 'A' at the end for 'AM'/'PM'.
  • Save and test.
A complete list of parameters can be found at http://php.net/manual/en/function.date.php

Re: Change Hesk Style date format to AM/PM

Posted: Sun Oct 16, 2016 6:04 pm
by Lisaweb
Thanks! I did that already, changed them to "j-M-Y g:ia" But it doesn't seem to affect the "Hesk Style" time stamp on the ticket list page.
mkoch227 wrote:If you want to use 12-hour time instead of 24-hour time, make the following changes to the "Time Format" setting:
  • Instead of 'H' for hours, use 'g' or 'G' (exclude quotes of course). g is "12-hour format without leading zero" and G is "12-hour format with leading zero"
  • Add 'a' at the end for 'am'/'pm', or 'A' at the end for 'AM'/'PM'.
  • Save and test.
A complete list of parameters can be found at http://php.net/manual/en/function.date.php

Re: Change Hesk Style date format to AM/PM

Posted: Mon Oct 17, 2016 3:28 pm
by Klemen
The "Hesk style" is used for date only, it doesn't have any effect on time.

If you want to modify the display of "submitted" and/or "last modified" columns in ticket list, set it to "date and time" then adjust the date/time format as suggested by Mike.