-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Modifier for timezone offset result in compile error #3220
Comments
I just checked the source code and saw that the modifiers (E, O) are not implemented for %z. I'll just use it without the colon. |
Modifiers ( |
I was referencing this https://en.cppreference.com/w/cpp/chrono/duration/formatter (close to the bottom).
|
Wow! Amazingly fast. Thank you so much! |
Hi,
I'm currently trying to print ISO8601 compatible time strings.
As per the specification I can print the timezone offset to UTC with the "%z" conversion specifier. This should for example print "+0100". Using the modifier E or O as in "%Ez" should print "+01:00". If I use either modifier I get a compile time exception FMT_THROW(format_error("invalid format"));
The example code I use is
Also see the example on compiler explorer https://godbolt.org/z/9cEvzKPn9
Am I doing something wrong? Thank you for your time!
The text was updated successfully, but these errors were encountered: