Staredit Network

Staredit Network -> SEN v5 Alpha -> Are times working for you?
Report, edit, etc...Posted by IsolatedPurity on 2005-07-09 at 08:44:41
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.
Report, edit, etc...Posted by BeeR_KeG on 2005-07-09 at 12:19:21
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.
Report, edit, etc...Posted by LegacyWeapon on 2005-07-09 at 12:29:21
If you look here:
http://www.time.gov/

You will see the places that don't have Daylight Savings in the US.
Report, edit, etc...Posted by IsolatedPurity on 2005-07-10 at 08:09:04
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.
Report, edit, etc...Posted by chuiu on 2005-07-12 at 01:31:05
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.
Report, edit, etc...Posted by BeeR_KeG on 2005-07-12 at 11:14:23
What Chu says is correct, now I'm 2 hours off track in SENv5.
Report, edit, etc...Posted by DT_Battlekruser on 2005-07-12 at 13:43:37
Yes, SENv5 is an hour ahead.
Report, edit, etc...Posted by LegacyWeapon on 2005-07-12 at 16:18:37
QUOTE(DT_Battlekruser @ Jul 12 2005, 01:43 PM)
Yes, SENv5 is an hour ahead.
[right][snapback]260895[/snapback][/right]

Report, edit, etc...Posted by IsolatedPurity on 2005-07-15 at 10:56:14
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.
Report, edit, etc...Posted by BeeR_KeG on 2005-07-15 at 11:03:03
CODE

Is my time correct? 8:02 pm


It is 11:02 AM here.
Report, edit, etc...Posted by IsolatedPurity on 2005-07-15 at 11:23:46
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.
Report, edit, etc...Posted by BeeR_KeG on 2005-07-15 at 11:34:42
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.
Report, edit, etc...Posted by IsolatedPurity on 2005-07-15 at 13:11:07
Check again... blink.gif
Report, edit, etc...Posted by BeeR_KeG on 2005-07-15 at 19:01:57
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 biggrin.gif
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?
Report, edit, etc...Posted by IsolatedPurity on 2005-07-15 at 23:25:56
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 blink.gif.

GMT's gmt offset might not be 0... but the time should still be right: http://wwp.greenwichmeantime.com/
Report, edit, etc...Posted by BeeR_KeG on 2005-07-17 at 11:57:09
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
Report, edit, etc...Posted by IsolatedPurity on 2005-07-18 at 14:36:13
Check again please...
I was thinking about it all wrong.
Report, edit, etc...Posted by BeeR_KeG on 2005-07-18 at 18:16:27
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.
Report, edit, etc...Posted by IsolatedPurity on 2005-07-18 at 20:13:10
Okay, I'm stupid.
Next Page (1)