Skip to content

[#24281] Normalized '%Z' formatting to UTC offset across platforms#151

Open
Danipiza wants to merge 1 commit intomainfrom
fix/filename-time
Open

[#24281] Normalized '%Z' formatting to UTC offset across platforms#151
Danipiza wants to merge 1 commit intomainfrom
fix/filename-time

Conversation

@Danipiza
Copy link
Contributor

Description

This PR makes timezone formatting deterministic in timestamp_to_string by replacing %Z with a computed UTC offset string (UTC+HH or UTC+HH:MM) before calling std::put_time.

Problem

%Z is platform-dependent:

  • Windows may return localized full timezone names
  • Linux commonly returns short abbreviations (e.g., CET)

This causes inconsistent outputs across OSes for the same formatting pattern.

Signed-off-by: danipiza <dpizarrogallego@gmail.com>
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.

1 participant