X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id AB7DC5644A for ; Mon, 7 Mar 2005 19:07:47 +0000 (GMT) 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 72362-10 for ; Mon, 7 Mar 2005 19:07:46 +0000 (GMT) Received: from web41209.mail.yahoo.com (web41209.mail.yahoo.com [66.218.93.42]) by svr1.postgresql.org (Postfix) with SMTP id C03B256434 for ; Mon, 7 Mar 2005 19:07:44 +0000 (GMT) Received: (qmail 48835 invoked by uid 60001); 7 Mar 2005 19:07:45 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=eyqFCWnoaZ7Q20MTXtaW6VG19uS1MUhwOxt0+0/ceFnsCkepnhDFdYplkY8HwKdOVQLx0XIUyz2xzsMUyIXSp9eBoLUgIHYRfxpHINlytWD0Afl7NVy/1tq/s4hCWVAxQg1QBIm60LIviBqtdxzd/dFB3ZDLazD+UfxSsfq15tM= ; Message-ID: <20050307190745.48833.qmail@web41209.mail.yahoo.com> Received: from [80.127.13.234] by web41209.mail.yahoo.com via HTTP; Mon, 07 Mar 2005 19:07:44 GMT Date: Mon, 7 Mar 2005 19:07:44 +0000 (GMT) From: Charl Gerber Subject: postgre 7.3 / JSTL problem To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.477 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200503/52 X-Sequence-Number: 12445 Hi, I'm using Postgre 7.3.4 with the build 113 JDBC drivers. I am using JSTL (jakarta implementation, 1.0.6) in a web-app running on Tomcat 4.1.30. When I start my application (in a ServletContextListener), I have this statement: Config.set(event.getServletContext(), Config.FMT_TIME_ZONE, Constants.TIMEZONE); Where Constants.TIMEZONE = "Europe/Amsterdam" The server is on New Zealand time, 12 hours ahead of Amsterdam time. I have database timestamp fields which are defined as "DEFAULT now()". When I browse the database with an explorer tool, the timestamp is shown in the New Zealand time, eg "07 Mar 06:00". Local (Amsterdam) time is then 06 Mar 18:00. However, if I try to display the timestamp with JSTL the time is shown as 07 Mar 12:00. Ie 6 hours before NZ time instread of 12 hours later. Any ideas? A bug in the driver? JSTL settings? The server? My code? :) Thanks