Private
Public Access
1
0

updated time zone in sync

This commit is contained in:
Sander Roosendaal
2017-09-24 17:45:59 +02:00
parent db76e90411
commit 3b0763ade2
5 changed files with 17 additions and 8 deletions

View File

@@ -3,6 +3,7 @@
# Python
import oauth2 as oauth
import cgi
import pytz
import requests
import requests.auth
import json
@@ -285,7 +286,8 @@ def createunderarmourworkoutdata(w):
for e in zip(t,spm):
spmdata.append([e[0],e[1]])
start_time = w.startdatetime.isoformat()
st = w.startdatetime.astimezone(pytz.timezone(w.timezone))
start_time = st.isoformat()
timeseries = {
"distance": distancedata,