Fixed offset calculation between client and server.

Javascript returns positive offsets for negative timezones.

Refs #5713