UB-Mannheim / RaiseWikibase

Knowledge graph construction: Fast inserts into a Wikibase instance
https://ub-mannheim.github.io/RaiseWikibase/
MIT License
45 stars 6 forks source link

German time zone and time offset #2

Closed shigapov closed 3 years ago

shigapov commented 3 years ago

Setting time zone and time offset in Wikibase is described at Manual:Timezone. In our case with the German time zone setting those variables does not change the time zone in docker-compose logs -f.

dmcmilla commented 3 years ago

I modified the timenow variable defined in the insert method in dbconnection.py to call utcnow() instead of now() since we are storing everything based off of UTC. I'm not sure if this addresses this specific issue or not.

shigapov commented 3 years ago

Those logs are coming from Wikibase Docker even before any edits by RaiseWikibase... But it's a good idea to use utcnow() instead of now(). Would you like to make a pull request on that?

shigapov commented 3 years ago

now() is replaced by utcnow() in commit