From bd6a6bf71f5a24f16741029bebedc86c4a10ad93 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Tue, 20 Jan 2026 13:35:31 +1300 Subject: [PATCH] Garmin: Add Timezone Offset Information to Extra Info. Add the offset of the reported dive time to UTC as an Extra Info field. Note that the same offset can also be extracted from the `timezone` field that is returned by `dc_parser_get_datetime()`. Signed-off-by: Michael Keller --- src/garmin_parser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/garmin_parser.c b/src/garmin_parser.c index 0dd5bec9..f66d1c6e 100644 --- a/src/garmin_parser.c +++ b/src/garmin_parser.c @@ -1749,8 +1749,10 @@ garmin_parser_get_datetime (dc_parser_t *abstract, dc_datetime_t *datetime) /* 15-minute (900-second) offsets are real */ if ((offset % 900) == 0 && offset >= -12*60*60 && - offset <= 14*60*60) + offset <= 14*60*60) { timezone = offset; + dc_field_add_string_fmt(&garmin->cache, "Time offset from UTC [s]", "%+d", offset); + } } datetime->timezone = timezone;