php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch timezone-quickfix for Date/time related Bug #69916

Patch version 2015-06-24 14:32 UTC

Return to Bug #69916 | Download this patch
Patch Revisions:

Developer: cmb@php.net

 ext/date/php_date.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index be48b13..7a1ac04 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -3269,6 +3269,7 @@ static void php_date_timezone_set(zval *object, zval *timezone_object, zval *ret
 			timelib_set_timezone_from_abbr(dateobj->time, tzobj->tzi.z);
 			break;
 		case TIMELIB_ZONETYPE_ID:
+            timelib_update_ts(dateobj->time, NULL);
 			timelib_set_timezone(dateobj->time, tzobj->tzi.tz);
 			break;
 	}
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC