Private
Public Access
1
0

bug fix timezone c2 import

This commit is contained in:
Sander Roosendaal
2018-01-23 08:41:52 +01:00
parent 8cb5061b38
commit 05cde74e3d
2 changed files with 9 additions and 2 deletions

View File

@@ -9389,6 +9389,9 @@ def workout_getc2workout_view(request,c2id):
except:
timezone_str = 'UTC'
if timezone_str is None:
timezone_str = 'UTC'
workoutdate = startdatetime.astimezone(
pytz.timezone(timezone_str)
).strftime('%Y-%m-%d')