Commit 90f0ebcb authored by Tobias Steiner's avatar Tobias Steiner
Browse files

Reformat the modification date string

parent 9c32e522
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment