I\'m facing an issue while converting dates between my server and client where both is running in Germany. The Regional settings on the client machines could be set to both
This is what I do:
var BritishZone = TimeZoneInfo.FindSystemTimeZoneById("GMT Standard Time");
DateTime dt = DateTime.SpecifyKind(DateTime.UtcNow, DateTimeKind.Unspecified);
DateTimeInBritishLocal = TimeZoneInfo.ConvertTime(dt, TimeZoneInfo.Local, BritishZone);
I needed to add the SpecifyKind part or the ConvertTime throws an exception