pystac.read_file
returns temporal extents with tzinfo=tzlocal()
depending on the environment.
#819
Milestone
Depending on the environment (I think the value of
TZ
, maybe other things), the timezones on pystac Collections can betzlocal
rather thanutc
.Here's a demonstration of the environment
TZ
influencing the output:Since the STAC spec says that all datetimes should be UTC, I think that the datetimes should be tz-aware. If python-dateutil happens to return a tzlocal timezone, I think pystac can assume that local = UTC and localize it to UTC.
Upstream issue in python-dateutil: dateutil/dateutil#349
xref #760. I'm not sure if this would fix this behavior or not (cc. @philvarner)
The text was updated successfully, but these errors were encountered: