Hi, I have the following problem: The user can enter a date, this date is transferred to the server (Tomcat), and a scheduler task on the server starts an arbitrary action
The problem is that the UTC timezone is used. When I enter, for example, the 01.07.2007 12:00 on the java side this is interpreted as 01.07.2007 11:00, so there is one hour difference and the task is started one hour to early. I found out that the automatic change from summertime to wintertime is the cause: If the checkbox "Uhr automatisch auf Sommer-/Winterzeit umstellen" (in Windows XP German) in System-Date/Time dialog is checked, the problem exists, if this checkbox is not checked, everything is fine (Browser has to be restarted after check/uncheck the checkbox) new Date().getTimezoneOffset() returns -60 new Date((Date.UTC(2007, 6, 1, 11, 0, 0, 0)).getTimezoneOffset() returns -120 On the Java side the timezone offset is always -60. I cannot ensure that all users have this checkbox unchecked so what is the best solution to prevent this problem? I don't want to convert between Date and String. Regards, Markus P.S. I use qooxdoo 0.6.5 -- View this message in context: http://www.nabble.com/JSON-RPC-and-Date-Timezone-Problem-tf3205557.html#a8901467 Sent from the qooxdoo-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
