Fix local offset calculation. Closes #3595.

Python returns the timezone with the opposed sign to the standard
notation.