Skip to content

Commit

Permalink
An attempt to fix the tzlocal() issue on Windows (#156)
Browse files Browse the repository at this point in the history
* An attempt to fix the tzlocal() issue

We only need to compare to 1970-01-01, not sure if this value is
actually offset by timezone. I would sincerely doubt it.

* The commented note is not really relevant in isolation
  • Loading branch information
dagwieers committed Apr 29, 2019
1 parent 845f4f3 commit 3a38bdf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions resources/lib/vrtplayer/metadatacreator.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,7 @@ def year(self, value):
self._year = value

def get_video_dict(self):
try:
epoch = datetime.fromtimestamp(0, dateutil.tz.tzlocal())
except ValueError:
epoch = datetime.fromtimestamp(0, dateutil.tz.tzwinlocal())

epoch = datetime.fromtimestamp(0, dateutil.tz.UTC)
video_dict = dict()

if self.brands:
Expand Down

0 comments on commit 3a38bdf

Please sign in to comment.