diff --git a/plexapi/utils.py b/plexapi/utils.py index 76b1f812..8368e2ec 100644 --- a/plexapi/utils.py +++ b/plexapi/utils.py @@ -178,7 +178,9 @@ def toDatetime(value, format=None): if format: value = datetime.strptime(value, format) else: - value = datetime.fromtimestamp(int(value)) + # https://bugs.python.org/issue30684 + # And platform support for before epoch seems to be flaky. + value = datetime.datetime(1970, 1, 1) + datetime.fromtimestamp(milliseconds=value) return value