[LIP] Time display in my choice of timezone using javascript

"Binand Sethumadhavan" <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <[email protected]>
Hi,

I am trying to use javascript to show a timestamp in a webpage.

The timestamp is picked up by a new Date() object. Now, I need to
display this in a timezone of my choice, not the browser's. How do I
do that?

In Linux, I can do:

TZ=whatever date

and it will show me the date/time in timezone TZ.

I did code the whole damn thing myself in javascript, but it looks
kludgy - especially since the timezone I need to use requires DST
adjustments (US/Eastern).

Binand
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.