mirror of
https://github.com/leahneukirchen/mblaze
synced 2024-11-11 13:10:32 +00:00
mscan: keep local time
This commit is contained in:
parent
9d8783df4d
commit
5e1d751f29
2
mscan.c
2
mscan.c
@ -229,8 +229,6 @@ main(int argc, char *argv[])
|
|||||||
struct tm *tm = localtime(&now);
|
struct tm *tm = localtime(&now);
|
||||||
curyear = tm->tm_year;
|
curyear = tm->tm_year;
|
||||||
curyday = tm->tm_yday;
|
curyday = tm->tm_yday;
|
||||||
setenv("TZ", "", 1);
|
|
||||||
tzset();
|
|
||||||
|
|
||||||
setlocale(LC_ALL, ""); // for wcwidth later
|
setlocale(LC_ALL, ""); // for wcwidth later
|
||||||
if (wcwidth(0xFFFD) > 0)
|
if (wcwidth(0xFFFD) > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user