sigstore-java icon indicating copy to clipboard operation
sigstore-java copied to clipboard

Prefer OffsetDateTime instead of ZonedDateTime in TUF

Open vlsi opened this issue 2 years ago • 2 comments

Description

ZonedDateTime allows dates with named timezones (e.g. Europe/Berlin) that depend on the local timezone database. I wonder if we really need to support named time zones.

It might be slightly easier to deal with OffsetDateTime that never depends on the timezone database, and which is never subject to DST, etc.

vlsi avatar Sep 21 '22 16:09 vlsi

I'd even say that an Instant will do the job in incur minimal overhead.

michael-o avatar Jan 01 '23 00:01 michael-o

@patflynn. I believe this was intentional to support some weirdness in the sigstore specific tuf root

loosebazooka avatar Jan 01 '23 00:01 loosebazooka