From aa82af78e4ae8fec036dab05a81167b542e6ad08 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Mon, 30 Aug 2010 16:25:52 +0000 Subject: [PATCH] - Fixed bug #52454 (Relative dates and getTimestamp increments by one day) --- NEWS | 2 ++ ext/date/lib/tm2unixtime.c | 1 + 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index aa13a09374..47a42ceb96 100644 --- a/NEWS +++ b/NEWS @@ -41,6 +41,8 @@ (Felipe) - Fixed bug #52468 (wddx_deserialize corrupts integer field value when left empty). (Felipe) +- Fixed bug #52454 (Relative dates and getTimestamp increments by one day). + (Derick) - Fixed bug #52436 (Compile error if systems do not have stdint.h) (Sriram Natarajan) - Fixed bug #52433 (Call to undefined method mysqli::poll() - must be static). diff --git a/ext/date/lib/tm2unixtime.c b/ext/date/lib/tm2unixtime.c index 59f7daf9fb..f2b7493ed4 100644 --- a/ext/date/lib/tm2unixtime.c +++ b/ext/date/lib/tm2unixtime.c @@ -444,6 +444,7 @@ void timelib_update_ts(timelib_time* time, timelib_tzinfo* tzi) time->sse = res; time->sse_uptodate = 1; + time->have_relative = time->relative.have_weekday_relative = time->relative.have_special_relative = 0; } #if 0 -- 2.50.1