jandrews3 Posted October 29, 2007 Share Posted October 29, 2007 All my date() reports for time an hour off because Europe did their Daylight Saving bit yesterday, aren't they? That's gotta be it. The times were reporting accurate until that. Everything works off the GMT time. Quote Link to comment Share on other sites More sharing options...
Orio Posted October 29, 2007 Share Posted October 29, 2007 Are you asking something? Orio. Quote Link to comment Share on other sites More sharing options...
Dragen Posted October 29, 2007 Share Posted October 29, 2007 Surely it depends on where your server is doesn't it? I'm quite sure mine's still accurate, but I'm in England and my server's uk too. Quote Link to comment Share on other sites More sharing options...
jandrews3 Posted October 29, 2007 Author Share Posted October 29, 2007 I'm sorry. I'm really pretty new at this... The following code: date®; is returning Mon, 29 Oct 2007 15:54:06 -0600 That is MOST DEFINITELY not the case. It's an hour behind, but The GMT -0600 is correct so the only thing I can think of is that the server is gathering its time info from a source no longer in daylight saving. I checked date(O) and got a zero (indicating no longer in daylight saving). Is there a way to force this issue? I know its only another 6 days, but I have students who post questions much like this forum, and I want the times to be accurate. Quote Link to comment Share on other sites More sharing options...
otuatail Posted October 29, 2007 Share Posted October 29, 2007 Are you saying that the time is one hour ahead. 15:54:06 is hours ago. What country is the server in? Desmond. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted October 29, 2007 Share Posted October 29, 2007 Its not "wrong" ever, its just not what you want, you can change the timezone on it if you so desire. Quote Link to comment Share on other sites More sharing options...
Dragen Posted October 29, 2007 Share Posted October 29, 2007 Are you saying that the time is one hour ahead. 15:54:06 is hours ago. ah, but what country is jandrews in? It probably is an hour behind for him. Quote Link to comment Share on other sites More sharing options...
jandrews3 Posted October 29, 2007 Author Share Posted October 29, 2007 I'm in the central United States. My timezone is Central Standard Time. I'm afraid I don't know how to change my timezone. But even so, date (T) identifies my timezone correctly as CST. It's just an hour behind. Right now, it is 18:24:43, but date ® shows Mon, 29 Oct 2007 17:24:43 -0600. Again, the -0600 is right, but the server seems to be giving the time without daylight saving. The US passed a law this year changing our daylight saving date to next week as opposed to this week. I guess it is likely that the server/company I'm using has not taken this into account. Date(I) returns 0 meaning daylight saving is not active. That is wrong. Our daylight saving ends next sunday. Oh well. Quote Link to comment Share on other sites More sharing options...
Dragen Posted October 29, 2007 Share Posted October 29, 2007 The US passed a law this year changing our daylight saving date to next week as opposed to this week. why? Quote Link to comment Share on other sites More sharing options...
bwochinski Posted October 30, 2007 Share Posted October 30, 2007 So actually what you're saying is that date(T) incorrectly identifies your timezone as CST, rather than correctly as CDT. Same story for the -0600 offset. CDT offset is -0500. You could put in a workaround - http://us3.php.net/manual/en/function.date-timezone-set.php Or just call tech support for the server and notify them of the problem. Quote Link to comment Share on other sites More sharing options...
peranha Posted October 30, 2007 Share Posted October 30, 2007 Yes the US changed it, there is a patch that you need to find and download. The patch can be downloaded here http://www.intelliadmin.com/blog/2007/01/unofficial-windows-2000-daylight.html. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted October 30, 2007 Share Posted October 30, 2007 So actually what you're saying is that date(T) incorrectly identifies your timezone as CST, rather than correctly as CDT. Same story for the -0600 offset. CDT offset is -0500. You could put in a workaround - http://us3.php.net/manual/en/function.date-timezone-set.php Or just call tech support for the server and notify them of the problem. its never "wrong" Period, just not what you desire. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.