On 1/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> I have an application which is used in US, Europe and Asia.
> The application should show the date in each regions own local time.
> I have to create the time and store it in databsae in GMT and again
> while displaying the date back to the browser convert
> The GMT  into the local timezone. What Is the besy way to achieve this,
> My application is Struts based.
> Can I capture the browsers locale in the jsp and pass it to the backend
> and convert it into GMT to insert into database...
>
> Thanks for any suggestions.

There isn't anything currently in Struts that handles this for you, so
you'll need to parse the date, handling the time zone yourself.
However I have just created some new date validation functions that
can do this for you. They are only currently in subversion, the
package javadoc has some examples here:

    http://tinyurl.com/cc7a2

Niall

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

Reply via email to