ahawker / ulid

Universally Unique Lexicographically Sortable Identifier (ULID) in Python 3
Apache License 2.0
705 stars 42 forks source link

Datetime objects are naive #463

Closed beevor closed 4 years ago

beevor commented 4 years ago

ulid.timestamp().datetime returns a naive datetime object (lacking time zone information), but yet the time is in UTC.

A naive datetime is ambiguous. Can the datetime be made aware by explicitly attaching the UTC time zone? The datetimemodule documentation has reasons why it is preferred to use aware datetimes to represent times in UTC

ahawker commented 4 years ago

465 should address this issue by making them aware and in UTC. I will update and close this issue once the next version is deployed and available for use.

ahawker commented 4 years ago

This change should be available in version 0.2.0