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

Function getTimeZoneName

Tactility/Source/settings/time.cpp:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42std::string getTimeZoneName() {
43 Preferences preferences(TIME_SETTINGS_NAMESPACE);
44 std::string result;
45 if (preferences.optString(TIMEZONE_PREFERENCES_KEY_NAME, result)) {
46 return result;
47 } else {
48 return "Europe/Amsterdam";
49 }
50}
51
52bool hasTimeZone() {
53 Preferences preferences(TIME_SETTINGS_NAMESPACE);

Callers 2

onShowMethod · 0.85
tt_timezone_get_nameFunction · 0.85

Calls 1

optStringMethod · 0.45

Tested by

no test coverage detected