Fix issue where the time of a date was change when parsing string to date

Fix issue where the time of a date was change if the offset didn't match the offest of the settings.

issue A24Group/Triage#3922