When I'm converting a DateTime value to UTC it seems to be using the wrong offset for certain dates.
Example:
var input = new DateTime(1953, 04, 01, 00, 0, 0, 0);
var convertedDateTime = TimeZoneInfo.ConvertTimeBySystemTimeZoneId(input, "Central European Standard Time", "UTC");
In this case the date is converted from 1953-04-01 00:00:00
to 1953-03-31 22:00:00
.
However according to https://www.timeanddate.com/worldclock/converter.html?iso=19530331T230000&p1=16&p2=1440 the output value should be 1953-03-31 23:00:00
.
To me it looks like it's using the offset that is used today (2 hours) instead of the offset that was correct at that date (1 hour).
Am I making a mistake in the conversion?