Skip to content

runner timestamps invariant #3888

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

Merged
merged 2 commits into from
Jun 2, 2025
Merged

runner timestamps invariant #3888

merged 2 commits into from
Jun 2, 2025

Conversation

GhadimiR
Copy link
Contributor

@GhadimiR GhadimiR commented Jun 2, 2025

Following on from this PR, there were a couple of instances of this that were not addressed in the same file.

@Copilot Copilot AI review requested due to automatic review settings June 2, 2025 17:33
@GhadimiR GhadimiR requested a review from a team as a code owner June 2, 2025 17:33
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Ensures that timeline record timestamps are formatted using an invariant culture for consistency.

  • Added CultureInfo.InvariantCulture to ToString calls for StartedAt and CompletedAt
  • Aligns with previous fixes for timestamp formatting in this file
Comments suppressed due to low confidence (1)

src/Sdk/WebApi/WebApi/ResultsHttpClient.cs:523

  • Add a unit test (e.g., in Test/L0/WebApi/ResultsHttpClientL0.cs) to verify that ConvertTimelineRecordToStep produces the expected timestamp string under different culture settings, ensuring the invariant-culture formatting is applied.
StartedAt = r.StartTime?.ToString(Constants.TimestampFormat, CultureInfo.InvariantCulture),

Copy link

@Firas2515 Firas2515 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GhadimiR GhadimiR enabled auto-merge (squash) June 2, 2025 21:43
@GhadimiR GhadimiR merged commit 9b45778 into main Jun 2, 2025
9 checks passed
@GhadimiR GhadimiR deleted the ghadimir/runner_timestamps branch June 2, 2025 21:47
sirredbeard pushed a commit to sirredbeard/runner that referenced this pull request Jun 11, 2025
sirredbeard pushed a commit to sirredbeard/runner that referenced this pull request Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants