Home | History | Annotate | Download | only in utils

Lines Matching refs:tz

45 check_timezone_is_zoneinfo(const char*  tz)
49 if (tz == NULL)
53 slash1 = strchr( tz, '/' );
89 const char* tz = get_zoneinfo_timezone();
91 if (tz == NULL || !check_timezone_is_zoneinfo(tz))
94 return bufprint(p, end, "%s", tz);
110 const char* tz = getenv("TZ");
114 if (tz == NULL) {
129 tz = buff + sizeof(ZONEINFO_DIR)-1;
130 if ( !check_timezone_is_zoneinfo(tz) ) {
135 snprintf(android_timezone0, sizeof(android_timezone0), "%s", tz );
296 const char* tz = getenv( "TZ" );
300 if ( tz != NULL && !check_timezone_is_zoneinfo(tz) ) {
301 D( "%s: ignoring non zoneinfo formatted TZ environment variable: '%s'\n",
302 __FUNCTION__, tz );
303 tz = NULL;
306 if (tz == NULL) {
370 tz = temp + tzdirlen + 1;
371 D( "%s: found zoneinfo timezone %s from %s symlink\n", __FUNCTION__, tz, localtime );
394 tz = scan_timezone_dir( scan, scan->path_root, 0 );
403 if (tz == NULL)
406 snprintf(android_timezone0, sizeof(android_timezone0), "%s", tz);