fixing some rp3 tz issues
This commit is contained in:
@@ -252,6 +252,7 @@ def get_rp3_workout(user, workout_id, startdatetime=None): # pragma: no cover
|
|||||||
'boattype': '1x',
|
'boattype': '1x',
|
||||||
'rp3id': workout_id,
|
'rp3id': workout_id,
|
||||||
'startdatetime': startdatetime,
|
'startdatetime': startdatetime,
|
||||||
|
'timezone': str(user.rower.defaulttimezone)
|
||||||
}
|
}
|
||||||
|
|
||||||
session = requests.session()
|
session = requests.session()
|
||||||
|
|||||||
@@ -5220,7 +5220,8 @@ def workout_upload_api(request):
|
|||||||
totalDistance = post_data.get('totalDistance', None)
|
totalDistance = post_data.get('totalDistance', None)
|
||||||
elapsedTime = post_data.get('elapsedTime', None)
|
elapsedTime = post_data.get('elapsedTime', None)
|
||||||
summary = post_data.get('summary', 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(
|
s = 'Posting c2id {c2id} to Rowsandall. Startdatetime {startdatetime}, time zone {timezone}'.format(
|
||||||
c2id=c2id,
|
c2id=c2id,
|
||||||
@@ -5228,7 +5229,7 @@ def workout_upload_api(request):
|
|||||||
timezone=timezone,
|
timezone=timezone,
|
||||||
)
|
)
|
||||||
|
|
||||||
dologging('debuglog.log', s)
|
dologging('c2_log.log', s)
|
||||||
|
|
||||||
|
|
||||||
r = None
|
r = None
|
||||||
|
|||||||
Reference in New Issue
Block a user