Use dooku.datetime for local timezone info

Aside from main changes, bugfixes are introduced too.