Fix zone offset minutes calculation

And a typo at return type of 'localtimestamp' in the datetime document

Closes #1482