Fix timezone shift (thank you d_urruti)
Removed deprecated function uses.
Version 1.8.0
Merge branch 'release/1.8.0'