axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Meier (JIRA)" <>
Subject [jira] Commented: (AXIS2C-1049) Axis2/C does not handle timezone offsets or fractional seconds correctly
Date Mon, 10 Mar 2008 19:20:48 GMT


Dave Meier commented on AXIS2C-1049:

Hi Senaka,

You can downgrade this from Blocker if you need to as I have hooked up my own datetime parser
for now to deserialize the date/time strings.



> Axis2/C does not handle timezone offsets or fractional seconds correctly
> ------------------------------------------------------------------------
>                 Key: AXIS2C-1049
>                 URL:
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: util
>    Affects Versions: Current (Nightly)
>         Environment: Windows XP
>            Reporter: Dave Meier
>            Assignee: Senaka Fernando
>            Priority: Blocker
> See section of the spec at
> I have a C# client sending a date/time string as "2008-03-08T23:30:43.6915406-08:00"
which is an acceptable way of describing a time in the US/Pacific timezone.  It looks like
the code in util/src/date_time.c was recently changed, but even before it was not handling
this type of date/time string.
> First, it is treating the ".6915406" as milliseconds and giving me an error because it's
greater than 999.  This is supposed to be fractional seconds, not msec.
> Second, it doesn't parse the "-08:00" at all.  It is using the following to scan:
>   sscanf(time_str, "%d:%d:%d.%dZ", &hour, &min,  &sec, &msec);
> But the spec shows "'-'? yyyy '-' mm '-' dd 'T' hh ':' mm ':' ss ('.' s+)? (zzzzzz)?"
where the ".s+" part is the fractional seconds and "zzzzzz" can be "Z" or "+02:00" or "-08:00",

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message