When i change Date and Time on Ubuntu server with this command:
sudo date --set "25 Apr 2018 16:00:00"
And run this code:
Console.WriteLine(DateTime.Now);
here are its output!
4/3/2018 15:00:30
While the current server time is 4/3/2018 16:00:55
My app.csproj file
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
</Project>