Re: [GENERAL] Daylight savings time confusion

2010-03-22 Thread Alban Hertroys
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

Re: [GENERAL] Daylight savings time confusion

2010-03-22 Thread Rob Richardson
Tom, You said, "It seems to me that you're not entirely understanding how timestamps work in Postgres." That is an understatement! Thank you very much for your explanation. I have forwarded it to the other members of my development group, with my suggestion that we follow your ideas for futur

Re: [GENERAL] Daylight savings time confusion

2010-03-16 Thread Alvaro Herrera
Tom Lane wrote: > If my guesses are correct, then the minimum change to avoid this type > of problem in the future is to change UTCTimestamp to be declared as > timestamp WITHOUT time zone, so that you don't get two extra zone > rotations in there. However, I would strongly suggest that you rethi

Re: [GENERAL] Daylight savings time confusion

2010-03-15 Thread Tom Lane
"Rob Richardson" writes: > Our database monitors the progression of steel coils through the > annealing process. The times for each step are recorded in wallclock > time (US eastern time zone for this customer) and in UTC time. During > standard time, the difference will be 5 hours, and during d

Re: [GENERAL] Daylight savings time confusion

2010-03-15 Thread Adrian Klaver
On 03/15/2010 12:40 PM, Rob Richardson wrote: Greetings! Our database monitors the progression of steel coils through the annealing process. The times for each step are recorded in wallclock time (US eastern time zone for this customer) and in UTC time. During standard time, the difference wil

Re: [GENERAL] Daylight savings time confusion

2010-03-15 Thread Steve Crawford
Rob Richardson wrote: Greetings! ... I just looked at the record for a charge for which heating started just after 9:00 Saturday night, less than 3 hours before the change to daylight savings time. The UTC time stored for this event is six hours later! The function that writes these times f

Re: [GENERAL] Daylight savings time confusion

2010-03-15 Thread Rob Richardson
Thanks for the try, Justin, but that doesn't seem to be the problem. The query generates the same results on my customer's machine. Besides, I think your theory would only hold up if there were two machines involved. There aren't. RobR -- Sent via pgsql-general mailing list (pgsql-general@pos

Re: [GENERAL] Daylight savings time confusion

2010-03-15 Thread Justin Graf
On 3/15/2010 2:40 PM, Rob Richardson wrote: > Greetings! > > Our database monitors the progression of steel coils through the > annealing process. The times for each step are recorded in wallclock > time (US eastern time zone for this customer) and in UTC time. During > standard time, the differe

[GENERAL] Daylight savings time confusion

2010-03-15 Thread Rob Richardson
Greetings! Our database monitors the progression of steel coils through the annealing process. The times for each step are recorded in wallclock time (US eastern time zone for this customer) and in UTC time. During standard time, the difference will be 5 hours, and during daylight savings time t