Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Commits
3a282d35
Commit
3a282d35
authored
4 years ago
by
Jan Prachař
Browse files
Options
Downloads
Patches
Plain Diff
fix timezone při editaci kola
parent
6058cac8
Branches
Branches containing commit
No related tags found
1 merge request
!45
fix timezone při editaci kola
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mo/web/org_round.py
+5
-0
5 additions, 0 deletions
mo/web/org_round.py
with
5 additions
and
0 deletions
mo/web/org_round.py
+
5
−
0
View file @
3a282d35
...
@@ -346,6 +346,11 @@ class MODateTimeField(wtforms.DateTimeField):
...
@@ -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
):
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
)
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
):
def
process_formdata
(
self
,
valuelist
):
super
().
process_formdata
(
valuelist
)
super
().
process_formdata
(
valuelist
)
if
self
.
data
is
not
None
:
if
self
.
data
is
not
None
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment