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
Merge requests
!45
fix timezone při editaci kola
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
fix timezone při editaci kola
honza/timezone
into
master
Overview
1
Commits
1
Changes
1
Merged
Jan Prachař
requested to merge
honza/timezone
into
master
4 years ago
Overview
1
Commits
1
Changes
1
Bez tohoto, se mi v tom formuláři zobrazují časy v UTC tj. tak, jak jsou v databázi.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
3a282d35
1 commit,
4 years ago
1 file
+
5
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
mo/web/org_round.py
+
5
−
0
View file @ 3a282d35
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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
:
Loading