Fixes ticket #18728

Fixes parsing of ISO 8601 dates containing no colon in the time zone
offset. Ticket 18728 contains a simple bit of code demonstrating correctness.