Skip to content

Commit aa00118

Browse files
committed
avoid incorrect timezone update
1 parent 51c7f3d commit aa00118

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/lpdb_python/defs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,8 @@ def date(self) -> datetime.datetime:
514514
parsed = _parseIsoDateTime(self._rawGet("date"))
515515
if not self.dateexact:
516516
return parsed
517+
elif self._parent.timezone is None:
518+
return parsed
517519
return parsed.astimezone(self._parent.timezone)
518520

519521
@property

0 commit comments

Comments
 (0)