You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Ruault Gaetan <gr...@sopragroup.com> on 2010/10/11 12:08:23 UTC

problem with date

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
 
 
 

RE: problem with date

Posted by Ruault Gaetan <gr...@sopragroup.com>.
Thanks for your answer 

-----Message d'origine-----
De : Simon Nash [mailto:nash@apache.org] 
Envoyé : mardi 12 octobre 2010 11:13
À : user@tuscany.apache.org
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

Re: problem with date

Posted by Simon Nash <na...@apache.org>.
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/000500.html 
> 
> [2] 
> http://maillist.caucho.com/pipermail/hessian-interest/2008-September/000554.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

Re: problem with date

Posted by Simon Nash <na...@apache.org>.
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/000500.html
[2] http://maillist.caucho.com/pipermail/hessian-interest/2008-September/000554.html