more removing of date.today and replacing with timezone.now
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user