Sunday, 15 July 2012

asp.net - Why IIS 7.5 (Running .Net 4.5 web API) gives error when Date Time sent containing UTC as timezone -



asp.net - Why IIS 7.5 (Running .Net 4.5 web API) gives error when Date Time sent containing UTC as timezone -

i working on project, deals datetime. runs on windows 2008 r2, using .net 4.5 mvc web api , iis version 7.5.7600.16385.

so far, when testing on chrome , firefox, worked well. when started testing on internet explorer, start giving model error datetime field.

error was: value tue, 23 mar 2013 12:00:00 utc not valid starttime.

however, figured out the solution. have replaced utc gmt in every datetime field, works fine.

solution in practice:

value creating error: tue, 23 mar 2013 12:00:00 utc

solution: tue, 23 mar 2013 12:00:00 gmt

this way works well, guess problem , solution clear, question is:

question: why iis give error datetime string format containing utc time zone?

first of not sure why need utc , gmt.

might reason ie getting more smarter these days ;)

greenwich mean time (gmt) term referring mean solar time @ royal observatory, greenwich scheme first developed around 1850 tracking time based on rotation of earth. used refer coordinated universal time (utc) when viewed time zone.

strictly speaking, utc not time zone atomic time scale approximates gmt in old sense. used refer universal time (ut), astronomical concept straight replaced original gmt.

as utc not time zone ie not converting it, other browsers flexible , intelligent enough.

asp.net asp.net-mvc datetime asp.net-web-api iis-7.5

No comments:

Post a Comment