Private
Public Access
1
0

more removing of date.today and replacing with timezone.now

This commit is contained in:
Sander Roosendaal
2021-08-09 20:48:45 +02:00
parent 0438d3b396
commit 2b593d4df6
11 changed files with 23 additions and 22 deletions

View File

@@ -362,7 +362,7 @@ def trendflexdata(workouts, options,userid=0):
datadf['date'] = datadf['workoutid']
datadf['date'].replace(datemapping,inplace=True)
today = datetime.date.today()
today = timezone.now()
try:
datadf['days ago'] = list(map(lambda x : x.days, datadf.date - today))