Re: Setting the TimeZone
WO Dev <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello Shiv,
I don't know about putting in once for every applications, but at
least putting this in your Application.java constructor will do the
trick:
NSTimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles"));
Changing "America/Los_Angeles" with what you need;)
Xavier
> Hi All,
>
> Wanted to know whether is it possible to set the time-zone
> of Web
> objects server to say PDT while start up?
>
> So that creating a object of NSTimestamp will return me the
> PDT time
> instead of the time of the system/host/machine timestamp on which
> the web
> objects server is running.
>
> I am asked to change the display of time from GMT to PDT,
> for which
> I am supposed to change in many places in many file, so thought of
> instead
> changing it in all the places/files if we could set the time zone
> of the web
> objects server to PDT, then the creation of the object of
> NSTimestamp would
> return me PDT time.
>
> I am not sure whether it is possible or not.
> If it is possible please let me know how to set the time
> zone on
> start up of the web objects server.
>
>
> Thanks in Advance,
> - Shiv.
>
>
> _______________________________________________
> WebObjects-dev mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/webobjects-dev
>