fixing timezone glitches
This commit is contained in:
@@ -3236,6 +3236,9 @@ class Workout(models.Model):
|
||||
if not can_add_workout(user.user):
|
||||
raise forms.ValidationError("Free Coach User cannot have any workouts")
|
||||
|
||||
if self.timezone == 'tzutc()':
|
||||
self.timezone = 'UTC'
|
||||
|
||||
super(Workout, self).save(*args, **kwargs)
|
||||
|
||||
def __str__(self):
|
||||
|
||||
Reference in New Issue
Block a user