Skip to content

Commit e818094

Browse files
authored
Merge pull request #345 from Tomme/ignore_negative_epoch_values
Ignore negative epoch values
2 parents a406d71 + bcd81e6 commit e818094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plexapi/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def toDatetime(value, format=None):
181181
# https://bugs.python.org/issue30684
182182
# And platform support for before epoch seems to be flaky.
183183
# TODO check for others errors too.
184-
if int(value) == 0:
184+
if int(value) <= 0:
185185
value = 86400
186186
value = datetime.fromtimestamp(int(value))
187187
return value

0 commit comments

Comments
 (0)