W3C home > Mailing lists > Public > www-international@w3.org > July to September 2003

Re: Can servlet know the timezone of the browser?

From: Mark Davis <mark.davis@jtcsv.com>
Date: Tue, 22 Jul 2003 08:14:11 -0700
Message-ID: <009801c35063$e825c680$87763009@DAVIS1>
To: <www-international@w3.org>, "KOFF,CAROLINE \(HP-FtCollins,ex1\) \(by way of Martin Duerst <duerst@w3.org>\)" <caroline.koff@hp.com>

Funny, I was just talking to someone about that 2 minutes ago on the
phone...

Unfortunately, that is a gap in the current protocol. While the
accept-language is returned from the browser, you can't get the
timezone. And actually what you need is the Olson ID, so that you can
do proper daylight savings also.

What you can do is use javascript on the client side to probe the
system and figure out which of the Olson IDs is applicable, then
communicate that to the server. Very clumsy, but possible.

Mark
__________________________________
http://www.macchiato.com
►  “Eppur si muove” ◄

----- Original Message ----- 
From: "KOFF,CAROLINE (HP-FtCollins,ex1) (by way of Martin Duerst
<duerst@w3.org>)" <caroline.koff@hp.com>
To: <www-international@w3.org>
Sent: Tuesday, July 22, 2003 05:56
Subject: Can servlet know the timezone of the browser?


>
>
>
> Hi,
>
> I believe this question has come up before, but I cannot find an
answer.
>
> I appreciate your help.
> --Caroline Koff
>
>
Received on Tuesday, 22 July 2003 11:14:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 19:17:00 GMT