Skip to content
Snippets Groups Projects
Commit 3a282d35 authored by Jan Prachař's avatar Jan Prachař
Browse files

fix timezone při editaci kola

parent 6058cac8
No related branches found
No related tags found
1 merge request!45fix timezone při editaci kola
This commit is part of merge request !45. Comments created here will be created in the context of that merge request.
......@@ -346,6 +346,11 @@ class MODateTimeField(wtforms.DateTimeField):
def __init__(self, label, format='%Y-%m-%d %H:%M', description='Ve formátu 2000-01-01 12:34', **kwargs):
super().__init__(label, format=format, description=description, **kwargs)
def process_data(self, valuelist):
super().process_formdata(valuelist)
if self.data is not None:
self.data = self.data.astimezone()
def process_formdata(self, valuelist):
super().process_formdata(valuelist)
if self.data is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment