Commit 690a6809 authored by Kasimier T. Buchcik's avatar Kasimier T. Buchcik

Changed the VALID_TZO macro to restrict the timezone to -840 to 840.

* xmlschemastypes.c: Changed the VALID_TZO macro to restrict
  the timezone to -840 to 840.
parent 285b3672
Thu May 12 15:14:26 CEST 2005 Kasimier Buchcik <libxml2-cvs@cazic.net>
* xmlschemastypes.c: Changed the VALID_TZO macro to restrict
the timezone to -840 to 840.
Thu May 12 15:05:11 CEST 2005 Kasimier Buchcik <libxml2-cvs@cazic.net>
* xmlschemastypes.c: Applied patch from Steve Nairn (bug #303670)
......
......@@ -844,7 +844,7 @@ xmlSchemaGetBuiltInListSimpleTypeItemType(xmlSchemaTypePtr type)
#define VALID_HOUR(hr) ((hr >= 0) && (hr <= 23))
#define VALID_MIN(min) ((min >= 0) && (min <= 59))
#define VALID_SEC(sec) ((sec >= 0) && (sec < 60))
#define VALID_TZO(tzo) ((tzo > -1440) && (tzo < 1440))
#define VALID_TZO(tzo) ((tzo > -840) && (tzo < 840))
#define IS_LEAP(y) \
(((y % 4 == 0) && (y % 100 != 0)) || (y % 400 == 0))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment