Private
Public Access
1
0

replacing timestamp with call to timestamp

This commit is contained in:
Sander Roosendaal
2021-03-01 08:59:13 +01:00
parent c801dc4d93
commit 33188f3322
13 changed files with 28 additions and 26 deletions

View File

@@ -374,7 +374,7 @@ def add_workout_from_data(user,importid,data,strokedata,source='runkeeper',
except:
rowdatetime = datetime.strptime(data['date'],"%Y-%m-%d %H:%M:%S")
rowdatetime = thetimezone.localize(rowdatetime).astimezone(utc)
starttimeunix = arrow.get(rowdatetime).timestamp
starttimeunix = arrow.get(rowdatetime).timestamp()
#starttimeunix = mktime(rowdatetime.utctimetuple())
starttimeunix += utcoffset*3600