From c84ef4003cb68c5dbe496a5c90e8bbd17a287c60 Mon Sep 17 00:00:00 2001 From: Darren Lines Date: Mon, 17 Oct 2022 19:55:52 +0100 Subject: [PATCH] Change tz_offset min and max The current min and max for `tz_offset` is 1440, or 24 hours. The actual min and max for UTC is -12 hours (-720) and +14 hours (840). This PR uses the UTC values as the actual min and max offsets. --- docs/Settings.md | 2 +- src/main/fc/settings.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Settings.md b/docs/Settings.md index f6ceaa9f19..f8a3509020 100644 --- a/docs/Settings.md +++ b/docs/Settings.md @@ -5778,7 +5778,7 @@ Time zone offset from UTC, in minutes. This is applied to the GPS time for loggi | Default | Min | Max | | --- | --- | --- | -| 0 | -1440 | 1440 | +| 0 | -720 | 840 | --- diff --git a/src/main/fc/settings.yaml b/src/main/fc/settings.yaml index 3b911a40cc..dbf04250d9 100644 --- a/src/main/fc/settings.yaml +++ b/src/main/fc/settings.yaml @@ -3687,8 +3687,8 @@ groups: - name: tz_offset description: "Time zone offset from UTC, in minutes. This is applied to the GPS time for logging and time-stamping of Blackbox logs" default_value: 0 - min: -1440 - max: 1440 + min: -720 + max: 840 - name: tz_automatic_dst description: "Automatically add Daylight Saving Time to the GPS time when needed or simply ignore it. Includes presets for EU and the USA - if you live outside these areas it is suggested to manage DST manually via `tz_offset`." default_value: "OFF"