Just been debugging a daylight savings glitch... something that
interested me:
(in a BST locale at 5:14 local time, 4:14 GMT)
DateTime.Now.ToString("R") >"Mon, 26 Mar 2007 05:14:34 GMT"
However...
DateTime.Now.IsDaylightSavingTime() >true
DateTime.UtcNow.ToString("R") >"Mon, 26 Mar 2007 04:17:04 GMT"
Doesn't that make the DateTime.Now.ToString("R") incorrect by RFC822?
Shouldn't it be using local offset?
Anyways... fixed using UTC formats ;-p
Marc