diff options
Diffstat (limited to 'ext/date/lib/unixtime2tm.c')
-rw-r--r-- | ext/date/lib/unixtime2tm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/date/lib/unixtime2tm.c b/ext/date/lib/unixtime2tm.c index 93c4126d14..c0878cdbbf 100644 --- a/ext/date/lib/unixtime2tm.c +++ b/ext/date/lib/unixtime2tm.c @@ -141,7 +141,7 @@ void timelib_update_from_sse(timelib_time *tm) signed int dst = tm->dst; sse = tm->sse; - + switch (tm->zone_type) { case TIMELIB_ZONETYPE_ABBR: case TIMELIB_ZONETYPE_OFFSET: { @@ -152,11 +152,11 @@ void timelib_update_from_sse(timelib_time *tm) case TIMELIB_ZONETYPE_ID: { timelib_time_offset *gmt_offset; - + gmt_offset = timelib_get_time_zone_info(tm->sse, tm->tz_info); timelib_unixtime2gmt(tm, tm->sse + gmt_offset->offset); timelib_time_offset_dtor(gmt_offset); - + goto cleanup; } @@ -182,7 +182,7 @@ void timelib_unixtime2local(timelib_time *tm, timelib_sll ts) case TIMELIB_ZONETYPE_OFFSET: { int z = tm->z; signed int dst = tm->dst; - + timelib_unixtime2gmt(tm, ts - (tm->z * 60) + (tm->dst * 3600)); tm->z = z; @@ -195,7 +195,7 @@ void timelib_unixtime2local(timelib_time *tm, timelib_sll ts) timelib_unixtime2gmt(tm, ts + gmt_offset->offset); /* we need to reset the sse here as unixtime2gmt modifies it */ - tm->sse = ts; + tm->sse = ts; tm->dst = gmt_offset->is_dst; tm->z = gmt_offset->offset; tm->tz_info = tz; |