Private
Public Access
1
0

fix time zone

This commit is contained in:
Sander Roosendaal
2020-07-12 20:07:02 +02:00
parent 04c765ed1c
commit fa0ea3b370

View File

@@ -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,