12 references to ToUniversalTime
Microsoft.AspNetCore.Authentication.Cookies (2)
CookieAuthenticationHandler.cs (2)
277cookieOptions.Expires = _refreshExpiresUtc.Value.ToUniversalTime(); 332signInContext.CookieOptions.Expires = expiresUtc.ToUniversalTime();
Microsoft.AspNetCore.StaticFiles (1)
StaticFileContext.cs (1)
124_lastModified = new DateTimeOffset(last.Year, last.Month, last.Day, last.Hour, last.Minute, last.Second, last.Offset).ToUniversalTime();
Microsoft.AspNetCore.StaticFiles.FunctionalTests (1)
StaticFileMiddlewareTests.cs (1)
111var trimmed = new DateTimeOffset(last.Year, last.Month, last.Day, last.Hour, last.Minute, last.Second, TimeSpan.Zero).ToUniversalTime();
Microsoft.AspNetCore.StaticFiles.Tests (1)
StaticFileMiddlewareTests.cs (1)
132var trimmed = new DateTimeOffset(last.Year, last.Month, last.Day, last.Hour, last.Minute, last.Second, last.Offset).ToUniversalTime();
System.Formats.Asn1 (3)
System\Formats\Asn1\AsnWriter.GeneralizedTime.cs (1)
64DateTimeOffset normalized = value.ToUniversalTime();
System\Formats\Asn1\AsnWriter.UtcTime.cs (2)
61value = value.ToUniversalTime(); 89DateTimeOffset normalized = value.ToUniversalTime();
System.Security.Cryptography (2)
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (2)
203RevocationTime = (revocationTime ?? DateTimeOffset.UtcNow).ToUniversalTime(), 287DateTimeOffset timeUtc = time.ToUniversalTime();
System.ServiceModel.Syndication (2)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
582return dateTime.ToUniversalTime().ToString(Rfc3339UTCDateTimeFormat, CultureInfo.InvariantCulture);
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (1)
183return dateTime.ToUniversalTime().ToString(Rfc822OutputUtcDateTimeFormat, CultureInfo.InvariantCulture);