Branch: Tag:

2006-02-23

2006-02-23 16:29:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed off by one error for months in timestamps.

Rev: lib/modules/Sql.pmod/tds.pike:1.18

1:   /* -  * $Id: tds.pike,v 1.17 2006/02/16 12:40:01 grubba Exp $ +  * $Id: tds.pike,v 1.18 2006/02/23 16:29:43 grubba Exp $    *    * A Pike implementation of the TDS protocol.    *
1242:    if (!l && !(year & 3) && ((year % 100) || !(year % 400)))    yday++;    string res = sprintf("%04d-%02d-%02dT%02d:%02d:%02d", -  year, mon, mday, hour, min, sec); +  year, mon+1, mday, hour, min, sec);    TDS_CONV_WERROR("%O ==> %O\n", raw, res);    return res;    }