I have this method:
public static void Main()
{
var gmtTime = new DateTime(2013, 08, 15, 08, 53, 22);
TimeZoneInfo.ConvertTime(gmtTime, TimeZoneInfo.FindSystemTimeZoneById("GMT Standard Time"));
var b = gmtTime.ToUniversalTime();
Console.WriteLine(b);
}
on the 15th August 2013 the UK was in BST (UTC+1) so I was hoping the date would be changed to 07:53 because that's what the UTC would have been. This is working when run locally. But when run in https://dotnetfiddle.net/ or azure devops pipeline using "Azure Pipelines" (set to UTC) it fails.
According to erics answer here: C# british summer time (BST) timezone abbreviation
GMT standard time should be BST in the summer and GMT at other times; which is what I was hoping for