Display clients Timezone name when in daylight savings time

H

hourang

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.
 
J

Jc

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.lang.javascript/browse_frm/thread/c68501e91d4fdca5/
 
D

Dr John Stockton

JRS: In article <[email protected]>,
dated Fri, 24 Jun 2005 13:27:43, seen in (e-mail address removed) 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,745
Messages
2,569,487
Members
44,909
Latest member
DestinyKetoScam

Latest Threads

Top