Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure warning message uses local time #9280

Conversation

drewnoakes
Copy link
Member

@drewnoakes drewnoakes commented Oct 11, 2023

Fixes #9279

When incremental build failure detection is enabled, we can log a warning that includes paths and timestamps. However if FUTDC logging is disabled, the conversion from UTC to local time could be bypassed, making the log message harder to understand and potentially misleading (as there's no mention of UTC in the message).

This change fixes that issue by ensuring any times are converted to local time prior to being displayed.

Microsoft Reviewers: Open in CodeFlow

Fixes dotnet#9279

When incremental build failure detection is enabled, we can log a warning that includes paths and timestamps. However if FUTDC logging is disabled, the conversion from UTC to local time could be bypassed, making the log message harder to understand and potentially misleading (as there's no mention of UTC in the message).

This change fixes that issue by ensuring any times are converted to local time prior to being displayed.
@drewnoakes drewnoakes added the Feature-Up-to-date Build up-to-date check that avoids shelling out to MSBuild unless necessary. label Oct 11, 2023
@drewnoakes drewnoakes added this to the 17.9 milestone Oct 11, 2023
@drewnoakes drewnoakes requested a review from a team as a code owner October 11, 2023 21:34
@drewnoakes drewnoakes merged commit 890feba into dotnet:main Oct 12, 2023
5 checks passed
@drewnoakes drewnoakes deleted the fix-9279-inc-build-failure-logging-utc-times branch October 12, 2023 01:25
@ghost ghost modified the milestones: 17.9, 17.8 Oct 12, 2023
@drewnoakes drewnoakes modified the milestones: 17.8, 17.9 Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature-Up-to-date Build up-to-date check that avoids shelling out to MSBuild unless necessary.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incremental build failure warning can display UTC times
2 participants