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

@@ -2,6 +2,7 @@
# Python
import oauth2 as oauth
import pytz
import cgi
import requests
import requests.auth
@@ -231,7 +232,8 @@ def createrunkeeperworkoutdata(w):
}
distancedata.append(point)
start_time = w.startdatetime.strftime("%a, %d %b %Y %H:%M:%S")
st = w.startdatetime.astimezone(pytz.timezone(w.timezone))
start_time = st.strftime("%a, %d %b %Y %H:%M:%S")
try:
newnotes = w.notes+'\n from '+w.workoutsource+' via rowsandall.com'