fix time zone
This commit is contained in:
@@ -757,7 +757,6 @@ def getpartofday(row,r):
|
||||
tf = TimezoneFinder()
|
||||
try:
|
||||
timezone_str = tf.timezone_at(lng=lonavg, lat=latavg)
|
||||
print(timezone_str)
|
||||
except ValueError:
|
||||
timezone_str = 'UTC'
|
||||
if timezone_str == None:
|
||||
@@ -1196,6 +1195,7 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower',
|
||||
title = 'Workout'
|
||||
partofday = getpartofday(row,r)
|
||||
|
||||
|
||||
if partofday is not None:
|
||||
title = '{partofday} workout {workouttype}'.format(
|
||||
partofday=partofday,
|
||||
|
||||
Reference in New Issue
Block a user