I have the following code which converts UTC to local date/time.
Dim Ticks = DateTime.Parse("2018-03-25T01:00:00.000Z").Ticks
Dim UtcDate As New DateTime(Ticks, DateTimeKind.Utc)
Dim LocalTime = UtcDate.ToLocalTime()
The result in the LocalTime
variable should be 25/03/2018 02:00:00
but it's 25/03/2018 03:00:00
, two hours difference instead of one. I have checked my local system time settings and the time zone is correctly set at (UTC+00:00) London.
Note that GMT conversion works correctly with this code, only BST has an issue.
What am I doing wrong?