Remove decade-old commented-out code

This commit is contained in:
Sammy Kaye Powers 2017-10-30 15:06:33 -05:00 committed by Joe Watkins
parent b84cbefa94
commit 98d6d1189c
No known key found for this signature in database
GPG Key ID: F9BA0ADA31CBD89E

View File

@ -3424,7 +3424,7 @@ PHP_FUNCTION(date_timezone_get)
}
dateobj = Z_PHPDATE_P(object);
DATE_CHECK_INITIALIZED(dateobj->time, DateTime);
if (dateobj->time->is_localtime/* && dateobj->time->tz_info*/) {
if (dateobj->time->is_localtime) {
php_date_instantiate(date_ce_timezone, return_value);
tzobj = Z_PHPTIMEZONE_P(return_value);
set_timezone_from_timelib_time(tzobj, dateobj->time);
@ -3508,7 +3508,7 @@ PHP_FUNCTION(date_offset_get)
}
dateobj = Z_PHPDATE_P(object);
DATE_CHECK_INITIALIZED(dateobj->time, DateTime);
if (dateobj->time->is_localtime/* && dateobj->time->tz_info*/) {
if (dateobj->time->is_localtime) {
switch (dateobj->time->zone_type) {
case TIMELIB_ZONETYPE_ID:
offset = timelib_get_time_zone_info(dateobj->time->sse, dateobj->time->tz_info);