Lines Matching refs:tz
44 check_timezone_is_zoneinfo(const char* tz)
48 if (tz == NULL)
52 slash1 = strchr( tz, '/' );
88 const char* tz = get_zoneinfo_timezone();
90 if (tz == NULL || !check_timezone_is_zoneinfo(tz))
93 return bufprint(p, end, "%s", tz);
109 const char* tz = getenv("TZ");
113 if (tz == NULL) {
128 tz = buff + sizeof(ZONEINFO_DIR)-1;
129 if ( !check_timezone_is_zoneinfo(tz) ) {
134 snprintf(android_timezone0, sizeof(android_timezone0), "%s", tz );
295 const char* tz = getenv( "TZ" );
299 if ( tz != NULL && !check_timezone_is_zoneinfo(tz) ) {
300 D( "%s: ignoring non zoneinfo formatted TZ environment variable: '%s'\n",
301 __FUNCTION__, tz );
302 tz = NULL;
305 if (tz == NULL) {
369 tz = temp + tzdirlen + 1;
370 D( "%s: found zoneinfo timezone %s from %s symlink\n", __FUNCTION__, tz, localtime );
393 tz = scan_timezone_dir( scan, scan->path_root, 0 );
402 if (tz == NULL)
405 snprintf(android_timezone0, sizeof(android_timezone0), "%s", tz);