mirror of
https://github.com/bobbimanners/emailler.git
synced 2025-01-29 02:33:21 +00:00
Print actual timezone in effect after the date/time
This commit is contained in:
parent
f12af42b16
commit
6858da9747
@ -255,6 +255,7 @@ void readtimezonefile(void) {
|
||||
}
|
||||
fscanf(fp, "%s,%u", nondst_tz_code, &nondst_tz_secs);
|
||||
fscanf(fp, "%s,%u", dst_tz_code, &dst_tz_secs);
|
||||
nondst_tz_code[3] = dst_tz_code[3] = 0;
|
||||
fclose(fp);
|
||||
}
|
||||
|
||||
@ -414,7 +415,7 @@ int main(void)
|
||||
printf("%s", datestr);
|
||||
if (dst) {
|
||||
++dt.hour; // Spring forward!
|
||||
printf(" (DST)");
|
||||
printf(" (%s)", dst ? dst_tz_code : nondst_tz_code);
|
||||
}
|
||||
|
||||
p = (unsigned char*)0xbf98;
|
||||
|
Loading…
x
Reference in New Issue
Block a user