Re: TimeZone
Paul Yu <[email protected]> Sun, 30 Oct 2011 08:49:00 -0400
| Newsgroups | gmane.comp.web.webobjects.woproject.devel |
|---|---|
| Message-ID | <[email protected]> |
Peter Guten Morgan... I'm no expert on this stuff. It is just hard. This is what I have done on my project. 1) MySQL stores datetime in GMT. 2) For each customer group, they are timezone specific, I store their = timezone string in the database. When the user logs in, I store that in = the session. 3) I have a cover method to convert GMT in NSTimestamp to local time = based on the timezone string. =20 4) I also have a method to get the timezone of the browser and a method = to convert the datetime to the browser timezone, but my customers needed = the datetime to be in their local time.=20 Paul On Oct 30, 2011, at 8: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