By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,492 Members | 1,210 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,492 IT Pros & Developers. It's quick & easy.

Display clients Timezone name when in daylight savings time

P: n/a
ok im getting tired of looking for an answer and coming up short with
scripts that dont work. i have a application that uses GMT for all its
times and needs the clients timeoffset for showing the correct times
for everything. i use date.getTimezoneOffset() which works fine and
shows the daylight savings time correct value of -4 since im in eastern
standard time and its daylight savings time right now. well eastern
standard time is normally -5 and my dropdown populates with the -4
showing atlanta time. which will confuse the user and then they will
pick -5 eastern time which will make everything an hour off. i have a
disclaimer now, but i just want to know what the easiest way to display
the users time zone name useing the getTimezoneOffset() value. i
really want to be able to detect if the user has the adjust for
daylight savings checked for their machine.

Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Jc
ho*****@gmail.com wrote:
ok im getting tired of looking for an answer and coming up short with
scripts that dont work. i have a application that uses GMT for all its
times and needs the clients timeoffset for showing the correct times
for everything. i use date.getTimezoneOffset() which works fine and
shows the daylight savings time correct value of -4 since im in eastern
standard time and its daylight savings time right now. well eastern
standard time is normally -5 and my dropdown populates with the -4
showing atlanta time. which will confuse the user and then they will
pick -5 eastern time which will make everything an hour off. i have a
disclaimer now, but i just want to know what the easiest way to display
the users time zone name useing the getTimezoneOffset() value. i
really want to be able to detect if the user has the adjust for
daylight savings checked for their machine.


A quick search of google groups pulled up this thread:
http://groups.google.ca/group/comp.l...501e91d4fdca5/

Jul 23 '05 #2

P: n/a
JRS: In article <11*********************@g43g2000cwa.googlegroups. com>,
dated Fri, 24 Jun 2005 13:27:43, seen in news:comp.lang.javascript,
ho*****@gmail.com posted :
ok im getting tired of looking for an answer and coming up short with
scripts that dont work. i have a application that uses GMT for all its
times and needs the clients timeoffset for showing the correct times
for everything. i use date.getTimezoneOffset() which works fine and
shows the daylight savings time correct value of -4 since im in eastern
standard time and its daylight savings time right now. well eastern
standard time is normally -5 and my dropdown populates with the -4
showing atlanta time. which will confuse the user and then they will
pick -5 eastern time which will make everything an hour off. i have a
disclaimer now, but i just want to know what the easiest way to display
the users time zone name useing the getTimezoneOffset() value. i
really want to be able to detect if the user has the adjust for
daylight savings checked for their machine.


Please write in proper English, or other well-known ISO-7-compartible
language, with proper capitalisation and punctuation. If you want
people to take care over answering your question, you must first show
care in asking it.

Basically, what you write is incomprehensible garble; it sounds like a
well-known politician, maybe Bush or Prescott.

There are no reliable alphabetical forms, world-wide, for denoting
offsets from GMT/UTC. Whilst EST is generally taken as meaning Eastern
Standard Time, it could refer to (at least) Australia and America - and
what do the Ethiopians, Eritreans, and Egyptians use?

Javascript does not give access to any such name or abbreviation.

However, if you read the newsgroup FAQ thoughtfully enough, you'll see
how to determine the Winter and Summer offsets from GMT - the
information is available via the sig below.

--
John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.