diff --git a/src/Microsoft.Extensions.FileProviders.Embedded/EmbeddedFileProvider.cs b/src/Microsoft.Extensions.FileProviders.Embedded/EmbeddedFileProvider.cs index 473fbea2..f1121531 100644 --- a/src/Microsoft.Extensions.FileProviders.Embedded/EmbeddedFileProvider.cs +++ b/src/Microsoft.Extensions.FileProviders.Embedded/EmbeddedFileProvider.cs @@ -50,12 +50,12 @@ public EmbeddedFileProvider(Assembly assembly, string baseNamespace) _baseNamespace = string.IsNullOrEmpty(baseNamespace) ? string.Empty : baseNamespace + "."; _assembly = assembly; - _lastModified = DateTimeOffset.Now; + _lastModified = DateTimeOffset.UtcNow; #if NETSTANDARD1_5 if (_assembly.Location != null) { - _lastModified = new FileInfo(_assembly.Location).LastWriteTime; + _lastModified = new FileInfo(_assembly.Location).LastWriteTimeUtc; } #endif }