Thanks for your answer -----Message d'origine----- De : Simon Nash [mailto:[email protected]] Envoyé : mardi 12 octobre 2010 11:13 À : [email protected] Objet : Re: problem with date
Simon Nash wrote: > Ruault Gaetan wrote: >> Hi, >> We try to send date througth tuscany but we have a problem. >> >> if date is after 15 june 1940 we haven't any problem, we receive the >> good date >> >> but if date is previous like 14 june 1940 we receive a bad date 14 >> june 1940 ==> 13 june 1940. >> >> >> have you any idea for problem origin? >> >> >> I join my test project. >> >> you can launch the junit test testChargerClient. >> >> >> thanks >> >> Gaetan >> >> >> > This doesn't seem to be a Tuscany problem. See references [1] and [2]. > > From the referenced Hessian discussion it appears that there is a > Java problem with dates between 1 January 1900 and 14 June 1940 being > shifted back by one hour when a French time zone is used. I couldn't > see any resolution to this problem in the previous discussion. > > Simon > > [1] > http://maillist.caucho.com/pipermail/hessian-interest/2008-August/0005 > 00.html > > [2] > http://maillist.caucho.com/pipermail/hessian-interest/2008-September/0 > 00554.html > > > > On 15 June 1940 France moved from Western European (Summer) Time to Central European (Summer) Time, which is 1 hour later (see reference [3]). It seems that some code in the date/time conversion isn't accounting for this correctly. Simon [3] http://www.timeanddate.com/worldclock/timezone.html?n=195&syear=1925
