A little detail about dates maybe worth of mentioning

Please report bugs here!

Moderator: Thorsten

Post Reply
tigerlinux
Posts: 24
Joined: Thu Jun 02, 2011 2:11 pm

A little detail about dates maybe worth of mentioning

Post by tigerlinux »

Hi there,

I have something that maybe (or maybe not) would be worth to include in the documentation (install docs I mean)..

Even if you have your /etc/php.ini with the correct timezone, phpmyfaq will use whatever is defined in config/constants.php... The default for the downloaded package (zip/tar.gz) is Europe/Berlin, then, every date/time recorded in the database will show berlin relative times instead of actual timezone in the server or in /etc/php.ini.

Of course, the solution is very simple.. Just change inside config/constants.php the actual time zone.. Ej:

//define('PMF_DATETIME_TIMEZONE_DEFAULT', 'Europe/Berlin');
define('PMF_DATETIME_TIMEZONE_DEFAULT', 'America/Caracas');

That solved the problem for me (that was loooonggg ago, with first versions of 2.6 series)... While most server admins will have the curiosity enough to see why the dates are not being recorded in their timezone's, and somehow figure out the variable controlling it is in config/constants.php, I recommend to include a line in the install documentation that mentions something like "remember to change your timezone on config/constants.php".

Best regards,

RRMP.-
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: A little detail about dates maybe worth of mentioning

Post by Thorsten »

Hi,

this is mentioned in the documentation: http://www.phpmyfaq.de/documentation.2.7.en.php#2d

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
tigerlinux
Posts: 24
Joined: Thu Jun 02, 2011 2:11 pm

Re: A little detail about dates maybe worth of mentioning

Post by tigerlinux »

Thorsten wrote:Hi,

this is mentioned in the documentation: http://www.phpmyfaq.de/documentation.2.7.en.php#2d

bye
Thorsten
Oppss.. sorry, my mistake !. Never saw that section before.. noted !
Post Reply