X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2CD845E3639 for ; Thu, 26 Aug 2004 11:38:25 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 72279-10 for ; Thu, 26 Aug 2004 14:38:22 +0000 (GMT) Received: from expredir4.cites.uiuc.edu (expredir4.cites.uiuc.edu [128.174.5.187]) by svr1.postgresql.org (Postfix) with ESMTP id 5C9955E46E1 for ; Thu, 26 Aug 2004 11:38:16 -0300 (ADT) Received: from firefox.cites.uiuc.edu (firefox.ci.uiuc.edu [192.17.25.8]) by expredir4.cites.uiuc.edu (8.12.11/8.12.11) with ESMTP id i7QEcJwE022229; Thu, 26 Aug 2004 09:38:19 -0500 (CDT) Received: by firefox.cites.uiuc.edu (Postfix, from userid 79964) id E1A7D27B649; Thu, 26 Aug 2004 09:38:18 -0500 (CDT) Date: Thu, 26 Aug 2004 09:38:18 -0500 From: "Jay A. Kreibich" To: Ericson Smith Cc: pgsql-admin@postgresql.org Subject: Re: Time is off in PG server Message-ID: <20040826143818.GA7800@uiuc.edu> Reply-To: jak@uiuc.edu References: <412DE9EE.1070207@did-it.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <412DE9EE.1070207@did-it.com> User-Agent: Mutt/1.4.1i X-URL: http://www.uiuc.edu/~jak (includes PGP key) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/261 X-Sequence-Number: 14656 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. | University of Illinois at U/C