freach / udatetime

Fast RFC3339 compliant Python date-time library
Other
241 stars 27 forks source link

Fix POSIX only support for _get_local_utc_offset() #1

Open freach opened 8 years ago

freach commented 8 years ago

The usage of the "tm_gmtoff" field in tm struct (src/rfc3339.c) is currently only supported by POSIX systems. For cross-platform compatibility fallbacks should be offered.

Delgan commented 5 years ago

I read this in time module documentation:

Changed in version 3.6: The struct_time attributes tm_gmtoff and tm_zone are now available on all platforms.

Could that help with that issue?