Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

Comments for: ehresman20030911

Message # 1019389:
Date: 03/18/04 17:58
By: Olav Alexander Mjelde
Subject: RE: Well Done

Well..

You can say this was a great article, but I had the same thing in my head! My problem is, as Peter Matuchniak stated above:

Some countries / states have daylight savings time, others do not.

The ones that do have it, may vary on the date it changes.

Of course, one could find a register of all the timezones and then use many hours programming a system for changing timezones.

The obvious and easy part of this, is to gather the timezone of the user.
I thought of this idea:

1: The user inputs his local time
2: The php script checks the difference between the users local time and the servers local time
3: The php script stores the differende in a timezone_offset field

but.. there is the daylights-saving problem.

I dont know how many different daylight saving dates you have, maybe I will try to look into it.

I certannly know I will not program towards this, untill I know how to solve the dayligt saving.
Maybe I will do a dirty trick with javascript, but I'd rather not have javascript at all, as I'm not very keen on clientside scripting.

Previous Message | Next Message


Comments:
RE: Is ther something wrong with this method?Jason12/01/05 19:23
cofiguring iissujamary09/17/05 13:22
I hate timezones....Ryan02/27/05 05:36
Suneel Kanuri method beats all!Marius Ooms07/30/04 13:24
RE: A better way to go..Olav Alexander Mjelde07/07/04 05:30
A better way to go..Olav Alexander Mjelde04/09/04 15:30
RE: Well DoneOlav Alexander Mjelde03/18/04 17:58
Correction - I think GMT time storage is ok!Peter Matuchniak02/10/04 00:13
RE: Here is something i did with my timezones Vinutha02/07/04 04:33
Good ArticleRoger Rain01/11/04 06:56
Here is something i did with my timezones Suneel Kanuri11/25/03 10:53
TimeZone definition in EnvironmentNikola Savic10/07/03 05:53
It's much easier if you're on *nix...Jonathan09/22/03 16:42
Sometimes it's easier to store both...Peter Matuchniak, B.Sc (Maths)09/12/03 17:32
Well DonePaul09/12/03 10:51
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.