Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 24. Nov 2024, 23:35

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Wrong time in comments
PostPosted: 31. May 2006, 18:52 
Offline

Joined: 16. May 2006, 17:15
Posts: 53
Location: Rio Claro - SP - Brazil
The comments on my pictures are showing the wrong time (actually 5 hours later than the server time). How could I fix that?

_________________
http://www.skooterweb.com/fotos/
http://www.skooterweb.com/


Top
 Profile  
 
 Post subject:
PostPosted: 31. May 2006, 19:10 
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


Top
  
 
 Post subject:
PostPosted: 31. May 2006, 19:12 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Here is the list of supported time zones:

http://www.dynamicwebpages.de/php/timezones.php

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 31. May 2006, 19:38 
Offline

Joined: 16. May 2006, 17:15
Posts: 53
Location: Rio Claro - SP - Brazil
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.

_________________
http://www.skooterweb.com/fotos/
http://www.skooterweb.com/


Top
 Profile  
 
 Post subject:
PostPosted: 31. May 2006, 21:32 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I will put this in the config for the next build.

/Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 40 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy