diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2003-03-31 11:22:25 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2003-03-31 11:22:25 +0000 |
commit | b3721c25237d233832b69ac599cc688eb5dcad62 (patch) | |
tree | 44538d9f6d0a4fa4c97b5236de4644b237acadb9 /xmlschemastypes.c | |
parent | 455cc07308c673b6714e2f5670c2091a1dab95dc (diff) | |
download | android_external_libxml2-b3721c25237d233832b69ac599cc688eb5dcad62.tar.gz android_external_libxml2-b3721c25237d233832b69ac599cc688eb5dcad62.tar.bz2 android_external_libxml2-b3721c25237d233832b69ac599cc688eb5dcad62.zip |
fixed date comparison to handle the tzo The only failures left are
* xmlschemastypes.c: fixed date comparison to handle the tzo
The only failures left are disagreements on Notations and
'+1' not being allowed for ulong, uint, ushort and ubyte.
Daniel
Diffstat (limited to 'xmlschemastypes.c')
-rw-r--r-- | xmlschemastypes.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmlschemastypes.c b/xmlschemastypes.c index 79cf8334..4a659a39 100644 --- a/xmlschemastypes.c +++ b/xmlschemastypes.c @@ -2495,7 +2495,9 @@ _xmlSchemaDateCastYMToDays (const xmlSchemaValPtr dt) */ #define TIME_TO_NUMBER(dt) \ ((double)((dt->value.date.hour * SECS_PER_HOUR) + \ - (dt->value.date.min * SECS_PER_MIN)) + dt->value.date.sec) + (dt->value.date.min * SECS_PER_MIN) + \ + (dt->value.date.tzo * SECS_PER_MIN)) + \ + dt->value.date.sec) /** * xmlSchemaCompareDates: |