aboutsummaryrefslogtreecommitdiffstats
path: root/xmlschemastypes.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-03-31 11:22:25 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-03-31 11:22:25 +0000
commitb3721c25237d233832b69ac599cc688eb5dcad62 (patch)
tree44538d9f6d0a4fa4c97b5236de4644b237acadb9 /xmlschemastypes.c
parent455cc07308c673b6714e2f5670c2091a1dab95dc (diff)
downloadandroid_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.c4
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: