mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Remove decade-old commented-out code
This commit is contained in:
parent
b84cbefa94
commit
98d6d1189c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user