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

Add a way to create a time zone that is set on the system #230

Open
Lastique opened this issue Jun 7, 2023 · 1 comment
Open

Add a way to create a time zone that is set on the system #230

Lastique opened this issue Jun 7, 2023 · 1 comment

Comments

@Lastique
Copy link
Member

Lastique commented Jun 7, 2023

Please, provide a way to create a time zone object (presumably, posix_time_zone) that corresponds to whatever time zone is set on the current system. Essentially, I need a way to produce formatted date/time strings that include the current time zone information.

This has been requested here.

@Lastique
Copy link
Member Author

Lastique commented Jul 2, 2023

One possible way to do this is, I think, to use strftime with %z or %Z to obtain zone information and then parse it back into Boost.DateTime's posix_time_zone. This doesn't provide DST information, though.

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

1 participant