timezone() with timeofday() converts the wrong direction? - Mailing list pgsql-general

From Steve - DND
Subject timezone() with timeofday() converts the wrong direction?
Date
Msg-id LDEHKBBOEMIJKHKBOFNFKEGENGAA.postgres@digitalnothing.com
Whole thread Raw
Responses Re: timezone() with timeofday() converts the wrong  (Scott Marlowe <smarlowe@g2switchworks.com>)
Re: timezone() with timeofday() converts the wrong direction?  (Michael Fuhr <mike@fuhr.org>)
List pgsql-general
These attempts were run at 4/21/2005 13:15:00 -07.
UTC: 4/21/2005 20:15:00

SELECT timeofday()::timestamp
04/21/2005 13:15:00

SELECT timezone('UTC', now())
04/21/2005 20:15:00 PM

SELECT timezone('UTC', timeofday()::timestamp)::timestamp without time zone
04/21/2005 06:15:00 <- What the heck is this?!


Why does the conversion to UTC using timeofday() go wrong? It seems like the
conversion went 7 hours in the wrong direction. Did I forget a parameter or
switch somewhere?

Thanks,
Steve



pgsql-general by date:

Previous
From: Marco Colombo
Date:
Subject: Re: Filesystem options for storing pg_data
Next
From: Scott Marlowe
Date:
Subject: Re: Filesystem options for storing pg_data