v.20.4Bug Fix

Fix datetime function behavior for timezones with altered UTC offsets

Fix wrong behaviour of datetime functions for timezones that has altered between positive and negative offsets from UTC (e.g. Pacific/Kiritimati). Fixes #7202 #10369 (alexey-milovidov)