Page 1 of 1

Change date/time format

Posted: Fri Nov 24, 2006 5:35 pm
by ziopippo
I do apologize to the writers for any mistakes. :oops:

Q: How can i change date/time format whit my country standard?

R: Is too easy! You must only change some line of the code of your zm_config.php file.

The line to do change are:
#68

Code: Select all

define( "DATE_FMT_CONSOLE_LONG", "D jS M, g:ia" );		// This is the main console date/time, date() or strftime() format
#77

Code: Select all

define( "STRF_FMT_DATETIME_SHORT", "%y/%m/%d %H:%M:%S" ); // Strftime shorter format for dates with time, not locale aware
#78

Code: Select all

define( "STRF_FMT_DATETIME_SHORTER", "%m/%d %H:%M:%S" ); // Strftime shorter format for dates with time, not locale aware, used where space is tight


You must simply change the format of the date following the php format's date table. http://it2.php.net/date

Example:
Change the line 77 with this

Code: Select all

define( "STRF_FMT_DATETIME_SHORT", "%d/%m/%Y %H:%M:%S" );

The result is: 24/11/20006 18:33:40

Best Regards.

Ettore.
________
C77

Can't find zm_conf.php

Posted: Sat Sep 10, 2016 1:59 am
by Frosty
I like this idea, but where the heck is "zm_config.php"?