DateTime Time Zone conversion bug

331 views Asked by At

I try to convert my local time (Kiyv, Riga, UTC+02:00) to UTC, but there is an error in the following method

TimeZoneInfo.ConvertTimeToUtc(clientDate,
    TimeZoneInfo.FindSystemTimeZoneById(tTimeZone.SystemId));
  • clientDate is 19.06.2015 16:35:00
  • tTimeZone.SystemId is FLE Standard Time

The result is 19.06.2015 13:35:00, but as I know the result should be 19.06.2015 14:35:00

Why does this method return a result that has a 3 hours difference?

1

There are 1 answers

3
Soner Gönül On BEST ANSWER

From this link;

!!! Note: Currently FLE Summer Time is observed.

And this says it is UTC+3 currently. That's why it's too normal to get 3 hour differences when you calculate them.

As Hans Passanst says, when you write Google as Local time in Kyiv or Local time in Riga, both search result says (GMT+3)

Looks like DST started in 29 Mar 2015 and will end in 25 Oct 2015.