473,386 Members | 1,609 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Display clients Timezone name when in daylight savings time

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
2 7194
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Monty | last post by:
Let's say you provide an online service from 7:00AM to 6:00PM Eastern Time (daylight time in the summer). Is there way of showing these hours of availability on a web page in the user's local...
3
by: Ilja Booij | last post by:
Hi all, I have some trouble with the following: I'm getting a time string, in YYYY-MM-DD HH:mm:ss format, which I need to translate into a string with DD-Mon-YYYY HH:mm:ss +HHMM, where the...
6
by: Bijoy Naick | last post by:
I have an events table which stores the time of each event - the time and assoicated timezone. Is there a way of converting this time into GMT (with support for DST).. some sort of function which...
5
by: rgrandidier | last post by:
I have a SQL table that stores the UTC time for a column, I then want to display the UTC time to the user in their local time. My approach is to have the user set their time zone via their user...
13
by: Stuart Bishop | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi. I'm trying to determine the best way of saying 'The current time in UTC with no time zone information'. I'm currently using...
13
by: Bruno Wolff III | last post by:
Recently there has been some discussion about attaching a timezone to a timestamp and some other discussion about including a 'day' part in the interval type. These two features impact each other,...
2
by: Roshawn Dawson | last post by:
Hi, I have a datetime value that is already in GMT (UTC) time. What I would like to do is convert this value into Pacific Standard Time, but I also need to account for daylight savings time. ...
2
by: Max | last post by:
I need to display time as Eastern Time. The problem I'm having is that our server is in Arizona where there is no Daylight Savings time. That means half the year I need to add 2 hours to the time...
6
by: jehugaleahsa | last post by:
Hello: I would like it so that the time displayed was always for CDT/CDS. Potentially, the application can be run at locations in Mountain Time or Central Time. This is what I have now: //...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.