cloudfoundry / dotnet-core-buildpack

Cloud Foundry buildpack for .NET Core on Linux
http://docs.cloudfoundry.org/buildpacks/
Apache License 2.0
91 stars 90 forks source link

Dates not being converted from UTC despite using Datetime.ToLocalTime or Datetime.IsDaylightSavingTime #382

Closed Mark-Baxter closed 3 years ago

Mark-Baxter commented 3 years ago

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version? { "name": "", "build": "", "support": "https://docs.cloud.service.gov.uk", "version": 0, "description": "", "authorization_endpoint": "https://login.london.cloud.service.gov.uk", "token_endpoint": "https://uaa.london.cloud.service.gov.uk", "min_cli_version": null, "min_recommended_cli_version": null,
"api_version": "2.166.0", "osbapi_version": "2.15", "user": "f8a12b65-4c1f-4752-8fc6-fb3f871deea2" } cf version 7.2.0+be4a5ce2b.2020-12-10

What version of the buildpack you are using? Dotnet-Core Buildpack version 2.3.31 SDK 5.0.102

If you were attempting to accomplish a task, what was it you were attempting to do? When we deploy a Blazor Server Side app the times are always returned as UTC. When we run it locally the time displays as the local time. See attached document UTC issues.docx

Is your dotnet app unpublished, platform-dependant, or self-contained? Platform dependent

What did you expect to happen? When the Blazor Server Side app is deployed it displays datetimes in the local format

What was the actual behavior? When the Blazor Server Side app is deployed it displays datetimes as UTC

cf-gitbot commented 3 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/178707378

The labels on this github issue will be updated when the story is started.

menehune23 commented 3 years ago

Hi @Mark-Baxter, thanks for posting. Is this still an issue? To help debug whether or not this is a problem with the buildpack, please reply with a link to minimal app that reproduces the problem, along with reproduction steps.

Mark-Baxter commented 3 years ago

Hi Andrew

We managed to resolve it by other methods.

All the best, Mark.

From: Andrew Meyer @.> Sent: 07 September 2021 23:04 To: cloudfoundry/dotnet-core-buildpack @.> Cc: Baxter, Mark @.>; Mention @.> Subject: Re: [cloudfoundry/dotnet-core-buildpack] Dates not being converted from UTC despite using Datetime.ToLocalTime or Datetime.IsDaylightSavingTime (#382)

Hi @Mark-Baxterhttps://github.com/Mark-Baxter, thanks for posting. Is this still an issue? To help debug whether or not this is a problem with the buildpack, please reply with a link to minimal app that reproduces the problem, along with reproduction steps.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/cloudfoundry/dotnet-core-buildpack/issues/382#issuecomment-914657991, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASWXCFML6QH4YGX7XFWO6Q3UA2D5NANCNFSM47QCJWIA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

menehune23 commented 3 years ago

@Mark-Baxter thanks for the fast reply! I'll go ahead and close this then.