Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#40 XSD dateTimes can have incorrect fractional seconds

Fedora 3.0
closed-fixed
E S
5
2007-12-06
2007-11-15
E S
No

Per http://www.w3.org/TR/xmlschema-2/#dateTime-canonical-representation
"The fractional second string, if present, must not end in '0'"

For example:
2006-11-18T12:22:10.010Z vs. 2006-11-18T12:22:10.01Z (the former is incorrect).

Discussion

  • E S
    E S
    2007-11-15

    Logged In: YES
    user_id=487398
    Originator: YES

    I believe this behavior was introduced with the RI refactoring in 2.2.

    BaseTripleGenerator.add(SubjectNode subject, PredicateNode predicate, Date dateValue, Set<Triple> set) is calling DateUtility.convertDateToString() which (rightfully) isn't mindful of XSD dateTime considerations.

    I'll commit a fix for this in dev-143888 (Update Trippi for Mulgara).

     
  • E S
    E S
    2007-11-20

    Logged In: YES
    user_id=487398
    Originator: YES

    I've committed a fix for this in dev-143888.

    I'm not sure if this should be backported to maintenance-2.2. For users who are expecting the broken behavior (e.g. as input to DateFormat) this might break things. On the other hand, it *is* a bug and I believe it's new behavior (i.e., 2.1 didn't exhibit this behavior). Thoughts?

     
  • E S
    E S
    2007-12-06

    Logged In: YES
    user_id=487398
    Originator: YES

    Fixed in trunk and maintenance-2.2 branch

     
  • E S
    E S
    2007-12-06

    • status: open --> closed-fixed