Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alexandre Bulté
Validata Core
Commits
f6b5a2eb
Commit
f6b5a2eb
authored
Nov 29, 2018
by
Christophe Benz
Browse files
Export a UTC date
parent
6382ef0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
validata_core/__init__.py
View file @
f6b5a2eb
...
...
@@ -2,7 +2,7 @@ import importlib.util
import
json
import
logging
from
collections
import
defaultdict
from
datetime
import
datetime
from
datetime
import
datetime
,
timezone
from
pathlib
import
Path
import
importlib_resources
...
...
@@ -213,6 +213,6 @@ class Validator:
report
=
amend_report
(
report
)
# Add date
report
[
'date'
]
=
datetime
.
now
().
isoformat
()
report
[
'date'
]
=
datetime
.
now
(
timezone
.
utc
).
isoformat
()
return
report
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment