Re: [LIP] Time display in my choice of timezone using javascript
Babu Kalakrishnan <[email protected]>
| Newsgroups | gmane.user-groups.linux.india.programmers |
|---|---|
| Message-ID | <[email protected]> |
Don't think there's anything built into Javascript to handle timezones other than the local one. Check out http://www.merlyn.demon.co.uk/js-date5.htm for some canned solutions. BK On Wed, Jun 14, 2006 at 03:57:08PM +0200, Binand Sethumadhavan typed: > 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 > > > _______________________________________________ > linux-india-programmers mailing list > linux-india-programmers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/linux-india-programmers