views:

413

answers:

1

I have fields in a Mysql database typed datetime.

I store, for example, a payment's date with next Java code:

payment.setCreatedOn(new Date(System.currentTimeMillis()));

In my view layer I use fmt:formatDate to format dates:

<fmt:formatDate value="${payment.createdOn}" pattern="EEE, dd MMM yyyy HH:mm:ss"/>

My server is in London and my application's users are in Vienna. The time showing is delayed probably because of different time zones. I can use a timeZone Parameter in fmt:formatDate.

timeZone: Time zone in which to represent the formatted time.

After searching in Google, I think the value Europe/Vienna is valid for timeZone parameter.

Does anyone knows if there is list anywhere of the valid timeZone strings?

+1  A: 

Sergio - I'm sure you've long since found it anyway ...

Here's the homepage for the Olson database or 'zoneinfo' which is the definitive source of TZ info.

And here's a nice wiki for browsing zones.

martin clayton