W3CDTF datetime with timezone issue

Add test for W3CDTF datetime with timezone and fix code for it.