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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user