| Author |
Message |
djmaze Subject Matter Expert

Joined: May 15, 2004 Posts: 557 Location: http://tinyurl.com/5z8dmv
|
Posted:
Mon Mar 21, 2005 10:05 pm |
|
It took me a lot of time for something so simple.
But somehow servers that are DST based + PHP makes it almost impossible for you.
I live in a country that is DST based: Last Sunday in March at 2am
The server is also DST based, so no problemo for me.
But now you live on hawai (NO DST) or in the States (YES/NO First Sunday in april at 2am)
in hawai all shown times in PHP are out of sync with 1 hour
in states they are out of sync for 1-2 weeks
Or viceversa: the server is in the states
If the server is GMT based then all is ok, but how much people have their server set to GMT ???
This makes you scream for fixes.
You fix 1 part and then PHP spits out that all time functions are DST based.
Now have fun building your own "time" functions that do it properly and rewrite all your code to use those  |
|
|
|
 |
djmaze Subject Matter Expert

Joined: May 15, 2004 Posts: 557 Location: http://tinyurl.com/5z8dmv
|
Posted:
Sat Apr 09, 2005 9:21 am |
|
Took me 2 days to figure everything out but my code is working now  |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 15036 Location: Kansas
|
Posted:
Sat Apr 09, 2005 4:50 pm |
|
Well, are you gonna share or just brag  |
|
|
|
 |
djmaze Subject Matter Expert

Joined: May 15, 2004 Posts: 557 Location: http://tinyurl.com/5z8dmv
|
Posted:
Sun Apr 10, 2005 12:26 am |
|
Ehm this forum is named "Rants & Raves" so it's no a place to share
Will PM it to ya  |
|
|
|
 |
|
|
|
|