Unix Technical Forum

BUG #4022: DST Time Zone Bug related to: select now() at time zone 'EST'

This is a discussion on BUG #4022: DST Time Zone Bug related to: select now() at time zone 'EST' within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 4022 Logged by: Username_PalmTreesNSand Email address: webdata9@comcast.net PostgreSQL version: 8.3 ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 12:15 PM
Username_PalmTreesNSand
 
Posts: n/a
Default BUG #4022: DST Time Zone Bug related to: select now() at time zone 'EST'


The following bug has been logged online:

Bug reference: 4022
Logged by: Username_PalmTreesNSand
Email address: webdata9@comcast.net
PostgreSQL version: 8.3
Operating system: Windows Vista
Description: DST Time Zone Bug related to: select now() at time
zone 'EST'
Details:

I have recently noticed a problem since the Daylight savings time change
(past 1-2 days).
The following query returns the time from an hour ago (I'm in EST, but I
need to be able to handle other time zones):
select now() at time zone 'EST'
or select now() at time zone 'CST'

This query returns the correct time for EST:
select now()

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 12:15 PM
Tom Lane
 
Posts: n/a
Default Re: BUG #4022: DST Time Zone Bug related to: select now() at time zone 'EST'

"Username_PalmTreesNSand" <webdata9@comcast.net> writes:
> I have recently noticed a problem since the Daylight savings time change
> (past 1-2 days).
> The following query returns the time from an hour ago (I'm in EST, but I
> need to be able to handle other time zones):
> select now() at time zone 'EST'
> or select now() at time zone 'CST'


> This query returns the correct time for EST:
> select now()


I see no bug here. We're in daylight saving time now, so the zone is
EDT not EST. IOW, if it's currently 10:10 EDT, it is also a true
statement that it's 9:10 EST.

regards, tom lane

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:02 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com