Base:
1 override of LocalTimeZone
Aspire.Dashboard.Components.Tests (1)
Shared\TestTimeProvider.cs (1)
22public override TimeZoneInfo LocalTimeZone => _localTimeZone ??= TimeZoneInfo.CreateCustomTimeZone(nameof(TestTimeProvider), TimeSpan.FromHours(1), nameof(TestTimeProvider), nameof(TestTimeProvider));
3 references to LocalTimeZone
Aspire.Dashboard (3)
Extensions\TimeProviderExtensions.cs (3)
12var dateTime = TimeZoneInfo.ConvertTimeFromUtc(utcDateTimeOffset.UtcDateTime, timeProvider.LocalTimeZone); 20return TimeZoneInfo.ConvertTime(utcDateTimeOffset, timeProvider.LocalTimeZone); 34var local = TimeZoneInfo.ConvertTimeFromUtc(dateTime, timeProvider.LocalTimeZone);