On 2026-01-16 18:45, Berthold Stoeger via subsurface wrote:
On Freitag, 16. Jänner 2026 16:15:59 Ostindonesische Zeit Benjamin via
subsurface wrote:

Some of us live in countries where the DST transition changes every year for "reasons", and then you get the lovely corner case of needing to keep these historical changes, so that you can see when exactly you are adding
or subtracting that rather useless extra hour to your date/time.

I don't see the problem. You just save GMT+x at the time of the dive. That's
precisely what my old dive computer stored.

It appears to be a bit of a project, but I don't see the fundamental problem in adding a "std::optional<int> gmt" field to struct dive. An unset value means "don't know" a value in the range -12 -> +14 gives a known offset. One obviously has to think about the semantics of the time when the field is set.

That's the kind of first step I was thinking.  Just store the data if we
have it.  We don't have to commit to any irreversible change, we just
need to not discard data which we did have to have every possible option
remain available to us.

  Ron
_______________________________________________
subsurface mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to