pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Charl Gerber <charlgerber@yahoo.com>
To: pgsql-jdbc@postgresql.org
Subject: postgre 7.3 / JSTL problem
Date: Mon, 7 Mar 2005 19:07:44 +0000 (GMT)
Message-ID: <20050307190745.48833.qmail@web41209.mail.yahoo.com> (raw)

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
<fmt:formatDate value="${row.msgTime}" pattern="dd MMM
HH:mm"/>

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




view thread (3+ messages)  latest in thread

Message-ID: <20050307190745.48833.qmail@web41209.mail.yahoo.com>
Permalink:  ../20050307190745.48833.qmail@web41209.mail.yahoo.com/
Also on:    postgresql.org/message-id/20050307190745.48833.qmail@web41209.mail.yahoo.com

 · 

reply

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-jdbc@postgresql.org
  Cc: charlgerber@yahoo.com
  Subject: Re: postgre 7.3 / JSTL problem
  In-Reply-To: <20050307190745.48833.qmail@web41209.mail.yahoo.com>
  References: <20050307190745.48833.qmail@web41209.mail.yahoo.com>

* 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