Skip to content

Commit

Permalink
.Now -> .UtcNow
Browse files Browse the repository at this point in the history
  • Loading branch information
halgari committed Apr 30, 2024
1 parent 04e6fea commit ba1e7e7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ private InMemoryFileEntry InternalAddFile(AbsolutePath path, byte[] contents)
_files.Add(path, inMemoryFile);
directory.Files.Add(inMemoryFile.Path.RelativeTo(directory.Path), inMemoryFile);

inMemoryFile.CreationTime = DateTime.Now;
inMemoryFile.LastWriteTime = DateTime.Now;
inMemoryFile.CreationTime = DateTime.UtcNow;
inMemoryFile.LastWriteTime = DateTime.UtcNow;
return inMemoryFile;
}

Expand Down Expand Up @@ -290,7 +290,7 @@ private InMemoryFileEntry InternalCreateFile(AbsolutePath path, FileMode mode, F
if (inMemoryFileEntry is null)
throw new FileNotFoundException($"File \"{path.GetFullPath()}\" does not exist");

inMemoryFileEntry.LastWriteTime = DateTime.Now;
inMemoryFileEntry.LastWriteTime = DateTime.UtcNow;
return inMemoryFileEntry;
}

Expand Down

0 comments on commit ba1e7e7

Please sign in to comment.