A little detail about dates maybe worth of mentioning

Please report bugs here!

Moderators: jason102178, Florian, Thorsten, JochenS

A little detail about dates maybe worth of mentioning

Postby tigerlinux » Wed Oct 26, 2011 3:10 am

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.-
tigerlinux
 
Posts: 24
Joined: Thu Jun 02, 2011 2:11 pm

Re: A little detail about dates maybe worth of mentioning

Postby Thorsten » Wed Oct 26, 2011 7:01 am

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
Thorsten
 
Posts: 12199
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq

Re: A little detail about dates maybe worth of mentioning

Postby tigerlinux » Wed Oct 26, 2011 11:30 am

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 !
tigerlinux
 
Posts: 24
Joined: Thu Jun 02, 2011 2:11 pm


Return to Bug reports

Who is online

Users browsing this forum: No registered users and 0 guests