Re: Daylight savings time confusion

From: Alban Hertroys <dalroi(at)solfertje(dot)student(dot)utwente(dot)nl>
To: "Rob Richardson" <Rob(dot)Richardson(at)rad-con(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>, "Ward Eaton" <Ward(dot)Eaton(at)rad-con(dot)com>, "Daniel S(dot) Messina" <Dan(dot)Messina(at)rad-con(dot)com>, "Tim Kelly" <Tim(dot)Kelly(at)rad-con(dot)com>
Subject: Re: Daylight savings time confusion
Date: 2010-03-22 15:16:47
Message-ID: F0048D00-6E6A-4A2E-9E20-0FF2DC2FF788@solfertje.student.utwente.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 22 Mar 2010, at 14:08, Rob Richardson wrote:

> One question: We have customers all over the world. It would be best
> if we could rely on the operating system (usually Windows Server 2003)
> to tell us what time zone we're in, rather than asking for a specific
> timezone when we want to know a wallclock time. Is that possible? If

Usually that timezone is set in the client program that connects to the database. If that program lives on a central location instead of at your customers' then you may be able to determine their timezone from the client they are using upstream and pass it along to the database server.

For example, web browsers often pass along what timezone they're connecting from, so you may be able to set the "client timezone" based on that information.

A drawback of storing a clients' timezone at the server is that you would be wrong if they are connecting from another location than they usually do, for example while at a conference in a different country. If you leave determining the timezone up to them you can't ever be wrong ;)

Alban Hertroys

--
If you can't see the forest for the trees,
cut the trees and you'll see there is no forest.

!DSPAM:737,4ba789e510411783369698!

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Роман Маширов 2010-03-22 15:22:38 Avoiding deadlocks on mass delete / update
Previous Message Carsten Kropf 2010-03-22 15:15:17 Re: Determining the OID of a certain type