fixing timezone glitches
This commit is contained in:
@@ -700,6 +700,10 @@ def createc2workoutdata(w):
|
||||
if workouttype in otwtypes:
|
||||
workouttype = 'water'
|
||||
|
||||
if w.timezone == 'tzutc()':
|
||||
w.timezone = 'UTC'
|
||||
w.save()
|
||||
|
||||
|
||||
wendtime = w.startdatetime.astimezone(pytz.timezone(w.timezone))+datetime.timedelta(seconds=makeseconds(durationstr))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user