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

Function getTimeZoneCode

Tactility/Source/settings/time.cpp:61–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61std::string getTimeZoneCode() {
62 Preferences preferences(TIME_SETTINGS_NAMESPACE);
63 std::string result;
64 if (preferences.optString(TIMEZONE_PREFERENCES_KEY_CODE, result)) {
65 return result;
66 } else {
67 return "CET-1CEST,M3.5.0,M10.5.0/3"; // Default: Europe/Amsterdam
68 }
69}
70
71bool isTimeFormat24Hour() {
72 SystemSettings properties;

Callers 2

initTimeZoneFunction · 0.85
tt_timezone_get_codeFunction · 0.85

Calls 1

optStringMethod · 0.45

Tested by

no test coverage detected