| 59 | } |
| 60 | |
| 61 | std::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 | |
| 71 | bool isTimeFormat24Hour() { |
| 72 | SystemSettings properties; |
no test coverage detected