From: Jay A. Kreibich <jak@uiuc.edu>
To: Ericson Smith <eric@did-it.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Time is off in PG server
Date: Thu, 26 Aug 2004 09:38:18 -0500
Message-ID: <20040826143818.GA7800@uiuc.edu> (raw)
In-Reply-To: <412DE9EE.1070207@did-it.com>
References: <412DE9EE.1070207@did-it.com>
On Thu, Aug 26, 2004 at 09:47:26AM -0400, Ericson Smith scratched on the wall:
> Hi,
>
> When using date oriented functions on Postgresql, the time is an hour
> off, or in certain times, one hour ahead.
>
> System Timezone: EST
^^^
> System Time (date command): Thu Aug 26 09:44:28 EDT 2004
^^^
> SELECT now(); : 2004-08-26 08:44:31.307343-05
> SELECT date_part('epoch', '2004-08-26'::timestamp) ; : 1093496400 (1am
> on that day -- should be 12pm)
>
> Any suggestions?
Work in the same timezone. EST and EDT are not the same.
-j
--
Jay A. Kreibich | Integration & Software Eng.
jak@uiuc.edu | Campus IT & Edu. Svcs.
<http://www.uiuc.edu/~jak; | University of Illinois at U/C
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-admin@postgresql.org
Cc: jak@uiuc.edu, eric@did-it.com
Subject: Re: Time is off in PG server
In-Reply-To: <20040826143818.GA7800@uiuc.edu>
References: <412DE9EE.1070207@did-it.com> <20040826143818.GA7800@uiuc.edu>
* 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