Fixed time zone for tests

This commit is contained in:
Rhet Turnbull
2021-01-11 21:42:03 -08:00
parent 039118c1aa
commit 165f9b08f5
6 changed files with 26 additions and 1 deletions

View File

@@ -763,6 +763,11 @@ def test_photosinfo_repr():
def test_from_to_date():
import osxphotos
import datetime as dt
import os
import time
os.environ["TZ"] = "US/Pacific"
time.tzset()
photosdb = osxphotos.PhotosDB(PHOTOS_DB)