summaryrefslogtreecommitdiff
path: root/libexslt
diff options
context:
space:
mode:
authormoney_seshu Dronamraju <mcseshu@gmail.com>2011-03-07 12:12:11 +0800
committerDaniel Veillard <veillard@redhat.com>2011-03-07 12:12:11 +0800
commit4e9909066731067d8e256ca25d8d54944105bc5e (patch)
tree465bd24ef2c1f846c471cdae46613f8dd019ca5d /libexslt
parent7f741527832f4d85472c61f0468c1358f84810d7 (diff)
downloadlibxslt-4e9909066731067d8e256ca25d8d54944105bc5e.tar.gz
libxslt-4e9909066731067d8e256ca25d8d54944105bc5e.tar.bz2
libxslt-4e9909066731067d8e256ca25d8d54944105bc5e.zip
Fix a problem with ESXLT date:add() with January
Also adds a regression test provided by Michael Ludwig <milu71@gmx.de>
Diffstat (limited to 'libexslt')
-rw-r--r--libexslt/date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexslt/date.c b/libexslt/date.c
index cefbdd83..05b11ed3 100644
--- a/libexslt/date.c
+++ b/libexslt/date.c
@@ -1577,7 +1577,7 @@ _exsltDateAdd (exsltDateValPtr dt, exsltDateValPtr dur)
if ((r->hour) || (r->min) || (r->sec))
ret->type = XS_DATETIME;
else if (ret->type != XS_DATE) {
- if ((r->mon != 1) && (r->day != 1))
+ if (r->day != 1)
ret->type = XS_DATE;
else if ((ret->type != XS_GYEARMONTH) && (r->mon != 1))
ret->type = XS_GYEARMONTH;