Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determing client time 1

Status
Not open for further replies.

techkate

Programmer
Feb 23, 2004
118
US
When determining the client time, would it be better to only get the time zone, and base the client time off of the difference between the server time and the correct time for that timezone? This would avoid any human dst time change mistakes.

Don't really need help on this, just wondering if in the future this is something I should consider doing.

Thanks,


Kate

[small]"The Distorted View"
-the only podcast that's fresh perked
www.distortedview.com[/small]

 
I'd still store all entries in the database under the sever time, and then reformat them to the client when you display to the screen. You can pull all that info from their computer automatically via the javascript date object.

So, if you wanted to avoid any human interaction - yes, it would be possible. The only problem you'd run into is if they have javascript disabled - which at that point you'd probably just show the server time instead.

-kaht

Looking for a puppy? [small](Silky Terriers are hypoallergenic dogs that make great indoor pets due to their lack of shedding and small size)[/small]
 
Thanks for your input, kaht.

And I would like to apologize for my terrible misspelling on the thread subject. So sad. Hence the reason for my chugging caffeinated beverages this morning.

Kate

[small]"The Distorted View"
-the only podcast that's fresh perked
www.distortedview.com[/small]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top