Re: ivef bug on date format

9 views
Skip to first unread message

Chris Lukassen

unread,
Apr 4, 2010, 4:57:22 AM4/4/10
to Damien DE SAINT LAURENT, ivef...@googlegroups.com
Hi Damian,

I don't have access to my laptop but looked into the issue from my iphone, by looking into the SimpleDateFormat. Why does adding the "aaa" work? i would say from the documentation it is only the am/pm indicator? Times should be transmitted as UTC. Perhaps it needs the Z for that?

regards

Chris


On 2 Apr 2010, at 18:14, Damien DE SAINT LAURENT wrote:

Hi,

I 'm implementing IVEF 0.1.6 .
I get a delta between encodind and decoding date ( my example is on Posreport.updateTime )
I found the reason:it is due to unsifficient precision in date format .( if i add "aaa" in the  formats it is ok )
This delta is of 12 hours .
You can find a junit test as attachment 


Damien DE SAINT LAURENT



<ParserTest.java>

Chris Lukassen

unread,
Apr 4, 2010, 9:16:21 AM4/4/10
to Damien DE SAINT LAURENT, ivef...@googlegroups.com
Hi Damian,

I don't have access to my laptop but looked into the issue from my iphone, by looking into the SimpleDateFormat. Why does adding the "aaa" work? i would say from the documentation it is only the am/pm indicator? Times should be transmitted as UTC. Perhaps it needs the Z for that?

regards

damien

unread,
Apr 6, 2010, 3:30:41 PM4/6/10
to ivef
"hh" in date formats should be replaced with "HH", the first one
corresponds to an hour between 1 and 12
Reply all
Reply to author
Forward
0 new messages