Lines Matching refs:tz
431 static timelib_sll do_adjust_timezone(timelib_time *tz, timelib_tzinfo *tzi) in do_adjust_timezone() argument
433 switch (tz->zone_type) { in do_adjust_timezone()
436 tz->is_localtime = 1; in do_adjust_timezone()
437 return -tz->z; in do_adjust_timezone()
443 tz->is_localtime = 1; in do_adjust_timezone()
444 tmp = -tz->z; in do_adjust_timezone()
445 tmp -= tz->dst * 3600; in do_adjust_timezone()
451 tzi = tz->tz_info; in do_adjust_timezone()
461 tz->is_localtime = 1; in do_adjust_timezone()
462 before = timelib_get_time_zone_info(tz->sse, tzi); in do_adjust_timezone()
463 after = timelib_get_time_zone_info(tz->sse - before->offset, tzi); in do_adjust_timezone()
464 timelib_set_timezone(tz, tzi); in do_adjust_timezone()
467 ((tz->sse - after->offset) >= (after->transition_time + (before->offset - after->offset))) && in do_adjust_timezone()
468 ((tz->sse - after->offset) < after->transition_time) in do_adjust_timezone()
474 tmp = -tz->z; in do_adjust_timezone()
482 gmt_offset = timelib_get_time_zone_info(tz->sse + tmp, tzi); in do_adjust_timezone()
483 tz->z = gmt_offset->offset; in do_adjust_timezone()
485 tz->dst = gmt_offset->is_dst; in do_adjust_timezone()
486 if (tz->tz_abbr) { in do_adjust_timezone()
487 timelib_free(tz->tz_abbr); in do_adjust_timezone()
489 tz->tz_abbr = timelib_strdup(gmt_offset->abbr); in do_adjust_timezone()