ahawker / ulid

Universally Unique Lexicographically Sortable Identifier (ULID) in Python 3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Datetime objects are naive

beevor opened this issue · comments

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 datetime module documentation has reasons why it is preferred to use aware datetimes to represent times in UTC

#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.

This change should be available in version 0.2.0