tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: [OT] Displaying Time Zones for user preferences
Date Thu, 22 Dec 2011 22:04:43 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

André,

On 12/22/11 3:51 PM, André Warnier wrote:
> As Konstantin points out separately, if you are going to use the
> local timezone for anything "serious", then you could get yourself
> into a lot of complications.

No, he's just saying "once a timezone, always a timezone".

> And who says the users are going to go though the trouble of
> selecting the right zone anyway?

Mine are. We have had complaints that all our timestamps are in "New
York" time. Actually, the real complaint was that we were displaying
timestamps without a time zone /at all/ and we had to tell them that
everything was in America/New_York.

Since I had to do a crapload of work just to get "EST" or "EDT"
displayed after our timestamps (because we convert from java.util.Date
- -> xs:dateTime -> on-screen format... it's a horrible mess of
poorly-compatible APIs, etc.), I figured I may as well make it
user-selectable. Now that it's user-selectable, we may as well allow
the user to, well, select it. :)

> and what if the user indeed spends his time traveling and making
> the life of the site designer difficult, like you above ? And what
> about users who are connecting first to their corporation's VPN
> from wherever they are, and of which all subsequent accesses appear
> to come from that corporation's firewall.

They can set their time zone to anything they want. And they can
change it. Or they can leave everything set to the default
(America/New_York).

> Oh wait, that was an argument against using GeoIP, wasn't it ?

:)

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7zqXsACgkQ9CaO5/Lv0PAn7wCgn9Iug0qZbqsJUdc0UUp507xL
pyIAn3s0y+KaCTE1Hlefj8ox/rvTsPWe
=Ofqv
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message