Did some tweaks to the parse_time function. Lemme know if it works for you, if not, post your GMT difference and the time difference that is occuring.
Make a feature to enable/disable Daylight Savings time.
I'm on GMT-4 and it's 12:18PM and we don't have Daylight Savings time we never do.
On SENv5 it displays 1:18PM meaning that Daylight Savings time is enabled for everybody because of server location.
If you look here:
http://www.time.gov/You will see the places that don't have Daylight Savings in the US.
Yeah... I found that page while googling for information about daylight savings time. That's weird. Why would some states not practice it?
Ick.
And then some other countries have daylight savings time at different times of the year!
There would have to be a +1 and a -1 hour option to suit everyone.
There is a localtime() function, but I'm not sure if that works 100%. I'll have to test it out and throw it on the front page. Maybe I can automatically derive your local time. Using proxies and such would probably mess it up, so either way, there would have to be an override function.
It looks like 1 hour of information was lost durnig the server change. Look at v5, my time is off by 1 hour saying 1:30am not 12:30am.
What Chu says is correct, now I'm 2 hours off track in SENv5.
Yes, SENv5 is an hour ahead.
QUOTE(DT_Battlekruser @ Jul 12 2005, 01:43 PM)
Yes, SENv5 is an hour ahead.
[right][snapback]260895[/snapback][/right]
There is a time being displayed on the portal page, made with the help of someone's contributed notes on php.net. Check to see if that's right.
CODE
Is my time correct? 8:02 pm
It is 11:02 AM here.
Yeah... strangely enough, I asked that question when it didn't work for me on a refresh. I think I refreshed before the new equation was on the server...
Check again.
My code (+ his 1 line) is attempting to be server independant.
CODE
Is my time correct? 12:33 pm, -4 GMT
Server time: 11:33 am, -5 GMT
GMT time: 4:33 pm
My time is 11:34AM, GMT-4. We don't have daylights savings time.
Check again...
CODE
Is my time correct? 7:59 pm, -4 GMT
Server time: 6:59 pm, -5 GMT
GMT time: 10:59 pm, +0 GMT (hopefully)
My time is 6:59 PM GMT-4, you're getting closer IP
All these issues with Daylight Savings time makes me wonder; does php fully support Daylights Savings time, or does it just enable it for everyone because of the server location or just plain enables it for everyone?
Well... what we do is use time() for dates, which gives us the seconds that have passed since Jan 1, 1970. What I'm trying to do is create a new variable where it's GMT +0 with no daylight savings time... I do have a localtime() function that gives me if the server is in DST or not. From there, I would think, I can simply parse that new variable with your gmt settings regardless of who is or isn't in DST. PHP5, I think, has better control over all this, but for some reason, we aren't using it. I don't know why.
Check again, I really don't know if I changed anything... I added a "2" to one statement
.
GMT's gmt offset might not be 0... but the time should still be right:
http://wwp.greenwichmeantime.com/CODE
Is my time correct? 12:55 pm, -4 GMT
Server time: 11:55 am, -5 GMT
GMT time: 3:55 pm, +1 GMT (hopefully 0)
Still not correct. 11:55AM -4 GMT
Check again please...
I was thinking about it all wrong.
CODE
Server time is now: 6:14 pm
... Breakdown: iDelta1 (7:01 pm) - iDelta2 (12:01 am) = Server offset of + -5 GMT (-18000 seconds)
Your gmt offset is recorded as + -4
Your GMT Offset + Server GMT offset = Your local time offset:
-4 - -5 = 1
Server time + Local time offset = 7:14 pm
I don't really understand all that... but it's 6:14PM here. Your problem is daylight savings time, the GMT is correct.