Azure / service-fabric-mesh-preview

Service Fabric Mesh is the Service Fabric's serverless offering to enable developers to deploy containerized applications without managing infrastructure. Service Fabric Mesh , aka project “SeaBreeze” is currently available in private preview. This repository will be used for tracking bugs/feature requests as GitHub issues and for maintaining the latest documentation.
MIT License
83 stars 10 forks source link

Wrong time in Mesh application #349

Open boppbo opened 5 years ago

boppbo commented 5 years ago

I've had problems with new JWT tokens that were classified as expired, so I added a following controller method:

 public ActionResult<IEnumerable<string>> GetAll()
        {
            return new[] { 
                DateTime.Now.ToString(CultureInfo.InvariantCulture),
                DateTime.UtcNow.ToString(CultureInfo.InvariantCulture)
            };
        }

At 13:07 UTC it returns:

[
  "02/20/2019 19:47:31",
  "02/20/2019 19:47:31"
]

I tried setting timezone to utc during build as described in #144, but that didn't help. I used microsoft/dotnet:2.2-aspnetcore-runtime-nanoserver-1803

julipur commented 5 years ago

Try using this as the base image in the service Dockerfile

FROM microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-sac2016 AS base

oatsoda commented 4 years ago

Is this due to this issue?