Fix issue when there was a timezone offset.