Bug fix timezone none 976 (#978)

* Allow --uuid-from-file to read from stdin, #965

* Load query options before opening the database

* Fix for timezone in database has value None, #976
This commit is contained in:
Rhet Turnbull
2023-02-11 09:26:57 -08:00
committed by GitHub
parent 97a0a65d8a
commit d990670f72
3 changed files with 26 additions and 10 deletions

View File

@@ -67,6 +67,7 @@ class PhotoTimeZone:
c.execute(sql)
results = c.fetchone()
tz, tzname = (results[0], results[1])
tz = tz or 0 # it's possible for tz to be None, #976
tz_str = tz_to_str(tz)
return tz, tz_str, tzname