We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fecfedb + bd8949e commit b7914ddCopy full SHA for b7914dd
plexapi/utils.py
@@ -178,7 +178,9 @@ def toDatetime(value, format=None):
178
if format:
179
value = datetime.strptime(value, format)
180
else:
181
- value = datetime.fromtimestamp(int(value))
+ # https://bugs.python.org/issue30684
182
+ # And platform support for before epoch seems to be flaky.
183
+ value = datetime.datetime(1970, 1, 1) + datetime.fromtimestamp(milliseconds=value)
184
return value
185
186
0 commit comments