If I output a formatted date as follows:
DateTime.Parse("2010-06-02T15:26:37.789 +01:00").ToString("HH:mm:sszzz")
I get the expected result:
15:26:37+01:00
However, if I parse the same date, convert to UTC and output with the same format as follows:
DateTime.Parse("2010-06-02T15:26:37.789 +01:00").ToUniversalTime().ToString("HH:mm:sszzz")
I get this:
14:26:37+01:00
Now those two dates, the local and UTC versions, should be exactly the same but the outputted text represents two different times.
Why is this?
EDIT
To clarify, I expected the time in UTC to be 14:26:37 as the DST element is removed by UTC. I didn't expect it to still have an offset. The two above times are not equivalent, whereas 15:26:37+01:00 and 14:26:37+00:00 are.