From: Tom Lane <tgl@sss.pgh.pa.us>
To: Lane Van Ingen <lvaningen@ESNCC.com>
Cc: Obe, Regina DND\\MIS <robe.dnd@cityofboston.gov>
Cc: pgsql-hackers-win32@postgresql.org
Subject: Re: Server Time Setting
Date: Thu, 15 Sep 2005 11:51:14 -0400
Message-ID: <14438.1126799474@sss.pgh.pa.us> (raw)
In-Reply-To: <EKEMKEFLOMKDDLIALABIKEJOCCAA.lvaningen@esncc.com>
References: <EKEMKEFLOMKDDLIALABIKEJOCCAA.lvaningen@esncc.com>
"Lane Van Ingen" <lvaningen@ESNCC.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers-win32@postgresql.org
Cc: tgl@sss.pgh.pa.us, lvaningen@ESNCC.com, robe.dnd@cityofboston.gov
Subject: Re: Server Time Setting
In-Reply-To: <14438.1126799474@sss.pgh.pa.us>
References: <EKEMKEFLOMKDDLIALABIKEJOCCAA.lvaningen@esncc.com> <14438.1126799474@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox