Skip to content

fix(logger): set hourCycle to h23 when tz is not UTC #4102

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
Jul 1, 2025
Merged

Conversation

dreamorosi
Copy link
Contributor

Summary

Changes

Please provide a summary of what's being changed

This PR updates the date formatter in the LogFormatter base class to use hourCycle set to h23 and removes hour12 which was set to false.

This allows customers to correctly format timestamps containing midnight as 00 rather than 24 in all supported Node.js runtimes.

Please add the issue number below, if no issue is present the PR might get blocked and not be reviewed

Issue number: closes #4083


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@pull-request-size pull-request-size bot added the size/XS PR between 0-9 LOC label Jul 1, 2025
@dreamorosi dreamorosi self-assigned this Jul 1, 2025
@dreamorosi dreamorosi requested a review from svozza July 1, 2025 09:10
@boring-cyborg boring-cyborg bot added the logger This item relates to the Logger Utility label Jul 1, 2025
Copy link

sonarqubecloud bot commented Jul 1, 2025

@dreamorosi dreamorosi merged commit 54b0863 into main Jul 1, 2025
48 checks passed
@dreamorosi dreamorosi deleted the fix/logger branch July 1, 2025 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logger This item relates to the Logger Utility size/XS PR between 0-9 LOC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Logger - Invalid ISO 8601 timestamp (T24:00:00) when TZ is set to any non-UTC value
2 participants