[tools] Do timezone conversion properly

Fixes #450