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

[time.zone.db.access] Definition of std::chrono::current_zone() unclear #6922

Closed
hvenev opened this issue Apr 9, 2024 · 2 comments
Closed

Comments

@hvenev
Copy link

hvenev commented Apr 9, 2024

The current definition of current_zone() is the following:

A pointer to the time zone which the computer has set as its local time zone.

This leaves quite a lot of things open, most notably whether the returned time zone needs to be the same as the one used by the C library functions that deal with local time. In particular, it is unclear whether the TZ environment variable needs to be respected on POSIX systems (it is respected by the C library, but the words "the computer" as opposed to "the process" imply that it may need to be ignored).

@hvenev hvenev changed the title Definition of std::chrono::current_zone() unclear [time.zone.db.access] Definition of std::chrono::current_zone() unclear Apr 9, 2024
@jwakely
Copy link
Member

jwakely commented Apr 10, 2024

This repository is for editorial work on the draft, not for reporting issues in the standard. Please see https://cplusplus.github.io/LWG/lwg-active.html#submit_issue and use the email address at the top of that document, thanks.

@hvenev
Copy link
Author

hvenev commented Apr 10, 2024

I sent an email through the right channel.

@hvenev hvenev closed this as not planned Won't fix, can't repro, duplicate, stale Apr 10, 2024
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

No branches or pull requests

2 participants