summaryrefslogtreecommitdiff
path: root/ext/date/lib/timelib.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2007-07-12 18:58:00 (GMT)
committerDerick Rethans <derick@php.net>2007-07-12 18:58:00 (GMT)
commit4b64dbb9a19b962d9a4ec72dc128e5d48c425c9b (patch)
treeade8ff7d09186faa9a883efe7d1ba678049fa588 /ext/date/lib/timelib.c
parente206802652c4ffe46338879d64ece4731f89fd30 (diff)
downloadphp-4b64dbb9a19b962d9a4ec72dc128e5d48c425c9b.tar.gz
- MFH: Fixed bug #41964 (strtotime returns a timestamp for non-time string of
pattern '(A|a) .+'). - MFH: Fixed bug #41844 (Format returns incorrect number of digits for negative years -0001 to -0999). - MFH: Fixed bug #41842 (Cannot create years < 0100 & negative years with date_create or new DateTime). - MFH: Fixed bug #41709 (strtotime() does not handle 00.00.0000). - MFH: Fixed bug #41523 (strtotime('0000-00-00 00:00:00') is parsed as 1999-11-30).
Diffstat (limited to 'ext/date/lib/timelib.c')
-rw-r--r--ext/date/lib/timelib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/date/lib/timelib.c b/ext/date/lib/timelib.c
index f926d97..5179d27 100644
--- a/ext/date/lib/timelib.c
+++ b/ext/date/lib/timelib.c
@@ -167,8 +167,8 @@ void timelib_dump_date(timelib_time *d, int options)
if ((options & 2) == 2) {
printf("TYPE: %d ", d->zone_type);
}
- printf("TS: %lld | %04lld-%02lld-%02lld %02lld:%02lld:%02lld",
- d->sse, d->y, d->m, d->d, d->h, d->i, d->s);
+ printf("TS: %lld | %s%04lld-%02lld-%02lld %02lld:%02lld:%02lld",
+ d->sse, d->y < 0 ? "-" : "", llabs(d->y), d->m, d->d, d->h, d->i, d->s);
if (d->f > +0.0) {
printf(" %.5f", d->f);
}