I'm a bit lost here.... can you give me an example of
what I should give to jstl to print the time as
"Europe/London" ?

Thanks

Charl


--- Martin van Dijken <[EMAIL PROTECTED]> wrote:
> Hey Riaan,
> 
> Try fiddling around with setting the locale in JSTL.
> In your example
> code you create a SimpleDateFormat with a pattern as
> argument. JSTL uses
> the constructor with a Locale as additional
> parameter.
> 
> Grtz,
> 
> Martin
> 
> > -----Original Message-----
> > From: Riaan Oberholzer
> [mailto:[EMAIL PROTECTED] 
> > Sent: woensdag 25 februari 2004 8:18
> > To: Tag Libraries Users List
> > Subject: RE: JSTL <fmt:formatDate bug ???
> > 
> > 
> > > Could you post the code to manually format the
> date?
> > > I can easily compare that to what is being done
> by
> > > the JSTL implementation and give you some
> feedback 
> > > on that.
> > 
> > Something to the extend of:
> > 
> > static 
> > {
> > SimpleDateFormatter sdf = new
> > SimpleDateFormatter("yyyy-MM-dd HH:mm"); 
> >
>
sdf.setTimeZone(TimeZone.getTimeZone("Europe/London");
> > }
> > 
> > user inputs time in above format in jsp, then I
> do:
> > 
> > sdf.parseDate(inputtedDate) and do a getTime and
> then
> > create a java.sql.Timestamp with the long value
> and
> > put that in the DB. Mysql displays is as one hour
> > later, the Dutch time, which is expected.
> > 
> > When displaying it manually, I use the same sdf
> above
> > and do something like:
> > 
> > sdf.formatDate(new
> Date(resultSet.getTimestamp("time").getTime())).
> > 
> > Not 100% sure, as I do not have the code with me,
> but
> > somthing to this extend. The sdf is a static in a
> > singleton utility class.
> > 
> > And, as I said, it only gets messed up after DST
> kicks
> > in. Maybe "Europe/London" is somehow (wrongly)
> > interpreted as GMT?
> > 
> > > PS Thanks for hosting your application in our
> fine
> > > little country:)
> > 
> > I live here, but I'm not Dutch.  :)
> > 
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail SpamGuard - Read only the mail you
> want. 
> http://antispam.yahoo.com/tools
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to