Skip to content

Commit

Permalink
Support timestamps without leading 0 (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindwe authored Sep 15, 2024
1 parent 2a2eac7 commit 5085197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connectlife/appliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class DeviceType(StrEnum):
}


RE_DATETIME = re.compile(r"^(\d{4,5})/(\d{2})/(\d{2})T(\d{2}):(\d{2}):(\d{2})$")
RE_DATETIME = re.compile(r"^(\d{4,5})/(\d{1,2})/(\d{1,2})T(\d{1,2}):(\d{1,2}):(\d{1,2})$")
MAX_DATETIME = dt.datetime(dt.MAXYEAR, 12, 31, 23, 59, 59, tzinfo=dt.UTC)


Expand Down

0 comments on commit 5085197

Please sign in to comment.