settings-helpers: set TZ variable after changing timezone

Origin commit data
------------------
Commit: ceadf431e6
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-10-12 (Tue, 12 Oct 2021)

Origin message was:
------------------
- settings-helpers: set TZ variable after changing timezone
This commit is contained in:
vanhofen
2021-10-12 22:51:23 +02:00
parent 52048c0c1f
commit 3606a9c900

View File

@@ -633,10 +633,8 @@ bool CTZChangeNotifier::changeNotify(const neutrino_locale_t, void * Data)
fprintf(f, "%s\n", zone.c_str()); fprintf(f, "%s\n", zone.c_str());
fclose(f); fclose(f);
} }
#if 0
cmd = ":" + zone; cmd = ":" + zone;
setenv("TZ", cmd.c_str(), 1); setenv("TZ", cmd.c_str(), 1);
#endif
tzset(); tzset();
} }