Re: TimeZone

George Domurot <[email protected]> Sun, 30 Oct 2011 08:40:53 -0700
Newsgroups gmane.comp.web.webobjects.woproject.devel
Message-ID <[email protected]>
NSTimestampFormatter may be your new best friend.

Create a new timestamp formatter then apply the default format and parse =
timezones to your user's timezone.  Then use the format and parse =
methods to handle your conversions.

You can also use the formatter for entry fields in your components.

-G


On Oct 30, 2011, at 5:34 AM, Peter M=FCller wrote:

> Hello WO-Experts,
> is it possible to tell the WebObjects-Application, that it should work =
with a another TimeZone than the Server self has? For example: Server is =
located in Germany, but the application is for a project in USA.=20
>=20
> I found out, that if i set the Timezone of Date-Fields in the model to =
this Timezone, it works for those fields. But i need this also for other =
things, so e.g. aDate =3D new NSTimestamp(); should also be the USA-Time =
and not the time of the Server.
>=20
> Thank you :)
> Peter M.
> --=20
> Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de