Lines Matching refs:tz
427 static timelib_sll do_adjust_timezone(timelib_time *tz, timelib_tzinfo *tzi) in do_adjust_timezone() argument
429 switch (tz->zone_type) { in do_adjust_timezone()
432 tz->is_localtime = 1; in do_adjust_timezone()
433 return -tz->z; in do_adjust_timezone()
439 tz->is_localtime = 1; in do_adjust_timezone()
440 tmp = -tz->z; in do_adjust_timezone()
441 tmp -= tz->dst * 3600; in do_adjust_timezone()
447 tzi = tz->tz_info; in do_adjust_timezone()
457 tz->is_localtime = 1; in do_adjust_timezone()
458 before = timelib_get_time_zone_info(tz->sse, tzi); in do_adjust_timezone()
459 after = timelib_get_time_zone_info(tz->sse - before->offset, tzi); in do_adjust_timezone()
460 timelib_set_timezone(tz, tzi); in do_adjust_timezone()
463 ((tz->sse - after->offset) >= (after->transition_time + (before->offset - after->offset))) && in do_adjust_timezone()
464 ((tz->sse - after->offset) < after->transition_time) in do_adjust_timezone()
470 tmp = -tz->z; in do_adjust_timezone()
478 gmt_offset = timelib_get_time_zone_info(tz->sse + tmp, tzi); in do_adjust_timezone()
479 tz->z = gmt_offset->offset; in do_adjust_timezone()
481 tz->dst = gmt_offset->is_dst; in do_adjust_timezone()
482 if (tz->tz_abbr) { in do_adjust_timezone()
483 timelib_free(tz->tz_abbr); in do_adjust_timezone()
485 tz->tz_abbr = timelib_strdup(gmt_offset->abbr); in do_adjust_timezone()