MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / initTimeZone

Function initTimeZone

Tactility/Source/settings/time.cpp:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17constexpr auto* TIMEZONE_PREFERENCES_KEY_TIME24 = "tz_time24";
18
19void initTimeZone() {
20#ifdef ESP_PLATFORM
21 auto code= getTimeZoneCode();
22 if (!code.empty()) {
23 setenv("TZ", code.c_str(), 1);
24 tzset();
25 }
26#endif
27}
28
29void setTimeZone(const std::string& name, const std::string& code) {
30 Preferences preferences(TIME_SETTINGS_NAMESPACE);

Callers 1

runFunction · 0.85

Calls 1

getTimeZoneCodeFunction · 0.85

Tested by

no test coverage detected