Hi, I've digged deeper in the problem and found out that the daylight saving offset is handled different in Java and Javascript. For example: The date 04/01/1980 is in javascript handled with a daylight saving offset and in Java without the offset. (In the year 1980 the daylight saving hour was added on the first Sunday in April. Javascript add the hour at the last Sunday in March...)
Java does a quite good job compared to the official rules you can find here (in German): http://de.wikipedia.org/wiki/Sommerzeit#Deutschland Javascript only uses the last official daylight saving rule and not the really used rules. That's really hard to handle. Regards, Andreas > -----Ursprüngliche Nachricht----- > Von: Burak Arslan [mailto:[email protected]] > Gesendet: Freitag, 11. Juni 2010 15:52 > An: qooxdoo Development > Betreff: Re: [qooxdoo-devel] Java backend and Javascript date > > On 06/11/10 16:11, Fink, Andreas wrote: > > Thanks for your advice. > > This Java Date and Calendar functions driving me nuts! :) > > > > hi, > > i'm no java expert either but here we go: > > there are two types of time zones. one defines absolute utc offsets, the > other gets translated to utc offsets based on the time policy of that > particular region. > > For example, when translating UTC time to Europe/Istanbul time zone; > > 15/01/2009 14:00 UTC is 15/01/2009 16:00+02:00 > > but > > 15/06/2009 14:00 UTC is 15/06/2009 17:00+03:00 > > because of the summer daylight saving policy. > > your issue looks related to that (nov is winter, may is summer) did you > check the browser's locale settings? > > hth > burak > > > > --------------------------------------------------------------------------- > --- > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
