]> granicus.if.org Git - php/commitdiff
- Simplify code a little.
authorDerick Rethans <derick@php.net>
Fri, 17 Jun 2005 14:11:12 +0000 (14:11 +0000)
committerDerick Rethans <derick@php.net>
Fri, 17 Jun 2005 14:11:12 +0000 (14:11 +0000)
ext/date/lib/tm2unixtime.c
ext/date/lib/unixtime2tm.c

index 66a20b46994398e14b43c6cf3bf6d39970132647..9e2b862f83f57061eeec007cdffcbe85d5a61438 100644 (file)
@@ -202,11 +202,8 @@ static timelib_sll do_adjust_timezone(timelib_time *tz, timelib_tzinfo *tzi)
                        break;
 
                case TIMELIB_ZONETYPE_ID:
-                       tz->is_localtime = 1;
-                       timelib_set_timezone(tz, tz->tz_info);
-                       return -tz->z;
-
-                       break;
+                       tzi = tz->tz_info;
+                       /* Break intentionally missing */
 
                default:
                        /* No timezone in struct, fallback to reference if possible */
index 8895d1a0aa6f8ef97347ca5f32f7f04dbb0b565c..0b536dc467751de0fff7b7a28497b487ed861493 100644 (file)
@@ -132,6 +132,7 @@ void timelib_unixtime2local(timelib_time *tm, timelib_sll ts, timelib_tzinfo* tz
 
        gmt_offset = timelib_get_time_zone_info(ts, tz);
        timelib_unixtime2gmt(tm, ts + gmt_offset->offset);
+
        /* we need to reset the sse here as unixtime2gmt modifies it */
        tm->sse = ts; 
        tm->dst = gmt_offset->is_dst;