Merge branch 'release/v16.3.1'
This commit is contained in:
@@ -4904,7 +4904,7 @@ def workout_upload_api(request):
|
|||||||
|
|
||||||
w = Workout.objects.get(id=id)
|
w = Workout.objects.get(id=id)
|
||||||
if timezone is not None: # pragma: no cover
|
if timezone is not None: # pragma: no cover
|
||||||
print(w.startdatetime,timezone)
|
|
||||||
w.startdatetime = w.startdatetime.astimezone(pytz.timezone(timezone))
|
w.startdatetime = w.startdatetime.astimezone(pytz.timezone(timezone))
|
||||||
|
|
||||||
w.workoutdate = w.startdatetime.strftime('%Y-%m-%d')
|
w.workoutdate = w.startdatetime.strftime('%Y-%m-%d')
|
||||||
@@ -4913,9 +4913,6 @@ def workout_upload_api(request):
|
|||||||
w.timezone = timezone
|
w.timezone = timezone
|
||||||
w.save()
|
w.save()
|
||||||
|
|
||||||
print(w.startdatetime)
|
|
||||||
|
|
||||||
print(w.starttime)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user