Branch: Tag:

2019-04-05

2019-04-05 09:30:15 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Calendar.Timezone: Add support for /etc/timezone (Linux).

86: Inside #if 1
   if (tz) return tz;    }    -  foreach(({ "/etc/TIMEZONE", // Solaris +  foreach(({ "/etc/timezone", // Linux +  "/etc/TIMEZONE", // Solaris    "/etc/sysconfig/clock", // Linux Gentoo    "/etc/conf.d/clock", // Linux RedHat    "/etc/localtime", // Linux & BSDs (binary)    }), string fname) {    // Mapping from file name to variable name.    string var_name = -  ([ "/etc/TIMEZONE":"TZ", +  ([ "/etc/timezone":"", +  "/etc/TIMEZONE":"TZ",    "/etc/sysconfig/clock":"ZONE",    "/etc/conf.d/clock":"TIMEZONE",    "/etc/localtime":0,
112: Inside #if 1
   // werror("=>%O\n",tz);    return tz;    } +  } else if ((var_name == "") && sizeof(line)) { +  if (tz = `[](line)) +  { +  // werror("=>%O\n",tz); +  return tz;    }    }    }    } -  +  }    };    }