Commit 16b96555 authored by Tobinsk's avatar Tobinsk
Browse files

Merge branch '6-wrong-topic' into 'master'

Resolve "Wrong topic"

Closes #6

See merge request histhub/wikidata-normalizer!13
parents b88d1042 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) {
......
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