Skip site navigation (1) Skip section navigation (2)

Re: Server Time Setting

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Lane Van Ingen" <lvaningen(at)ESNCC(dot)com>
Cc: "Obe, Regina DND\\MIS" <robe(dot)dnd(at)cityofboston(dot)gov>,pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: Server Time Setting
Date: 2005-09-15 15:51:14
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers-win32
"Lane Van Ingen" <lvaningen(at)ESNCC(dot)com> writes:
> Looks like I may have just solved my own problem: I noticed that in Date and
> Time Properties of the Windows clock, on the Time Zone tab, there is a
> checkbox
> called  "Automatically adjust clock for daylight savings time changes".

> If that box is unchecked, PostgreSQL must try to compensate, because on
> those
> platforms that are unchecked is where I am having the problem of now()
> returning
> a date that is one hour later. It now works correctly.

Hmm.  I think the way that the code in pgtz.c is set up, it just assumes
that either "Eastern Standard Time" or "Eastern Daylight Time" should
map to our US/Eastern timezone (which is a DST-aware zone).  Running
your system in non-DST-aware mode is what's confusing it --- the offset
to GMT is an hour different than it "should be" at this time of year.

Should pgtz.c try to detect this situation and handle it by mapping to a
non-DST-aware internal timezone?

			regards, tom lane

In response to


pgsql-hackers-win32 by date

Next:From: Andrew DunstanDate: 2005-09-15 16:07:26
Subject: Re: Server Time Setting
Previous:From: Lane Van IngenDate: 2005-09-15 15:16:56
Subject: Re: Server Time Setting

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group