Problem with TimeZones / DayLight Saving

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Wesker
Forum Newbie
Posts: 1
Joined: Thu Feb 17, 2005 2:33 am

Problem with TimeZones / DayLight Saving

Post by Wesker »

Hello & difficult Question here !

I want to show on page two Timezones -> Germany and Brazil (Sao Paulo). Since im living in Germany its no probelm to show the German Time and DayLight Saving.

I just check if its DayLight Saving Time and adjust the time. Problem is - if Brazil changes also to Daylight Saving Time its not correct anymore !

Question 1: How would you solve this problem? Check for the current date and adjust the time?

Question 2: Is there a function already which answer my problem? Maybe a function where i just state which TimeZone i want ?

Im working with PHP5 - Apache 2 on a WINDOWS Machine !!


Thank you for answers !!!

Wesker
Post Reply