You are here: DST & getTimezoneOffset() « PHP Programming Language « IT news, forums, messages
DST & getTimezoneOffset()

Posted by bobkolk on 09/14/06 20:51

I'm writing a backend web app for a company that only has locations in
the US. Why can't I, at login, pull their getTimezoneOffset() using
javascript, cookie it, then when I need to show a local time compute
the difference in their value in the cookie vs. my server's value?

I've seen a million articles about factoring in DST, but when my server
(which is in PA) switches to DST won't the difference value remain the
same since everyone rolls into DST on the same date?

For example, in June the server offset is 4 and in California the
offset is 7. But in December the server is at 5 and California it's 8.
So it's always a difference of 3. No?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация