Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
Wrong time in comments https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=342 |
Page 1 of 1 |
Author: | fbreve [ 31. May 2006, 18:52 ] |
Post subject: | Wrong time in comments |
The comments on my pictures are showing the wrong time (actually 5 hours later than the server time). How could I fix that? |
Author: | Guest [ 31. May 2006, 19:10 ] |
Post subject: | |
Thats interesting - which php version are you using? after php 5.1 I have to call date_default_timezone_set to avoid date warnings. look for @date_default_timezone_set('Europe/Berlin'); in the code. I think you are 5 hours before or after German time . change 'Europe/Berlin' to your timezone. /Michael |
Author: | TinyWebGallery [ 31. May 2006, 19:12 ] |
Post subject: | |
Here is the list of supported time zones: http://www.dynamicwebpages.de/php/timezones.php /Michael |
Author: | fbreve [ 31. May 2006, 19:38 ] |
Post subject: | |
Hi Michael, I'm using PHP 5.1.4 I've changed all 'Europe/Berlim' strings to 'America/Sao_Paulo' and now the date/time is ok. Thanks. |
Author: | TinyWebGallery [ 31. May 2006, 21:32 ] |
Post subject: | |
I will put this in the config for the next build. /Michael |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |