public static double GetBaseUtcOffsetMilliseconds(string timezone) { if (string.IsNullOrEmpty(timezone)) return 0; TimeZoneInfo tz = TimeZoneInfo.FindSystemTimeZoneById(timezone); return tz.BaseUtcOffset.TotalMilliseconds; }