Private
Public Access
1
0

fixing some rp3 tz issues

This commit is contained in:
Sander Roosendaal
2023-02-03 08:58:11 +01:00
parent db452b946d
commit 6a847d73c0
2 changed files with 4 additions and 2 deletions

View File

@@ -252,6 +252,7 @@ def get_rp3_workout(user, workout_id, startdatetime=None): # pragma: no cover
'boattype': '1x',
'rp3id': workout_id,
'startdatetime': startdatetime,
'timezone': str(user.rower.defaulttimezone)
}
session = requests.session()

View File

@@ -5220,7 +5220,8 @@ def workout_upload_api(request):
totalDistance = post_data.get('totalDistance', None)
elapsedTime = post_data.get('elapsedTime', None)
summary = post_data.get('summary', None)
timezone = post_data.get('timezone', None)
timezone = post_data.get('timezone', 'UTC')
s = 'Posting c2id {c2id} to Rowsandall. Startdatetime {startdatetime}, time zone {timezone}'.format(
c2id=c2id,
@@ -5228,7 +5229,7 @@ def workout_upload_api(request):
timezone=timezone,
)
dologging('debuglog.log', s)
dologging('c2_log.log', s)
r = None