Re: Daylight savings time confusion

Поиск
Список
Период
Сортировка
От Alban Hertroys
Тема Re: Daylight savings time confusion
Дата
Msg-id F0048D00-6E6A-4A2E-9E20-0FF2DC2FF788@solfertje.student.utwente.nl
обсуждение исходный текст
Ответ на Re: Daylight savings time confusion  ("Rob Richardson" <Rob.Richardson@rad-con.com>)
Список 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
locationinstead of at your customers' then you may be able to determine their timezone from the client they are using
upstreamand 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
locationthan they usually do, for example while at a conference in a different country. If you leave determining the
timezoneup 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!



В списке pgsql-general по дате отправления:

Предыдущее
От: Carsten Kropf
Дата:
Сообщение: Re: Determining the OID of a certain type
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Determining the OID of a certain type