Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
histhub
wikidata-lib
Commits
90f0ebcb
Commit
90f0ebcb
authored
Aug 09, 2018
by
Tobias Steiner
Browse files
Reformat the modification date string
parent
9c32e522
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/wiki-normalizer.ts
View file @
90f0ebcb
...
...
@@ -53,6 +53,7 @@ class WikiNormalizer extends Transform {
}
// build object
const
date
=
new
Date
();
result
=
{
id
:
obj
.
id
,
provider
:
'
wikidata
'
,
...
...
@@ -64,7 +65,7 @@ class WikiNormalizer extends Transform {
start
:
this
.
getStart
(
obj
),
end
:
this
.
getEnd
(
obj
),
typology
:
this
.
getInstanceOf
(
obj
),
modification_date
:
(
new
Date
()).
toTimeString
()
,
modification_date
:
`
${
date
.
getFullYear
()}
-
${
date
.
getMonth
()}
-
${
date
.
getDate
()}
`
,
location
:
`
${
lat
}
,
${
lon
}
`
,
};
}
catch
(
err
)
{
...
...
Write
Preview
Supports
Markdown
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