I've got a Silverlight application that shows some data.
I use a DateTimeConverter to convert the DateTime
value into a String
.
I use the dateTime.ToString("G")
format and I get back 01/01/2010 12:01
or something like that.
So far so good.
However, the same application on a Mac shows 01/01/2010 12:01 +02:00
. That's the time CET with the current offset from UTC (so the time UTC is 10:01
).
What is going on? Is there a special setting on the Mac? I played with the system settings and removed the CET
and others from the text format but I still get the exact same result.
Is this a bug?
EDIT: when I display the format pattern as suggested in the answer, I have HH:mm:ss
on the PC and HH:mm:ss zzzz
on the Mac.
Cheers.