negative time for adjustment fixed

When we calculated adjustment for timezone we would end up with
inaccurate time. The key was to add 24 hours if the calculated
local_hour was negative