feat: Support all current timezones for GPS (#3406)
* Support all current timezones. * Fix function name and calculation for timezone offset. * Allow setting any time offset value from -12 to +14 in 15 minutes increments. * Alternate timezone editor in Companion (from elecpower). * Fix compiler warning. * chore: Add the T20
This commit is contained in:
@@ -174,4 +174,13 @@ int strncasecmp(char (&s1)[L1], const char *const s2)
|
||||
std::string getValueWithUnit(int val, uint8_t unit, LcdFlags flags);
|
||||
std::string getGVarValue(uint8_t gvar, gvar_t value, LcdFlags flags);
|
||||
|
||||
// Timezone handling
|
||||
extern int8_t minTimezone();
|
||||
extern int8_t maxTimezone();
|
||||
extern std::string timezoneDisplay(int tz);
|
||||
extern int timezoneIndex(int8_t tzHour, int8_t tzMinute);
|
||||
extern int8_t timezoneHour(int tz);
|
||||
extern int8_t timezoneMinute(int tz);
|
||||
extern int timezoneOffsetSeconds(int8_t tzHour, int8_t tzMinute);
|
||||
|
||||
#endif // _STRHELPERS_H_
|
||||
|
||||
Reference in New Issue
Block a user