You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling the (experimental-library feature) std::chrono::time_zone::to_sys() with a 'nonexistent time' (daylight saving) the hour is corrected, but the minute part remains.
According to https://en.cppreference.com/w/cpp/chrono/time_zone/to_sys the correct behaviour would be: "If tp represents a nonexistent time between two UTC time_points, those two time_points will be the same, and that time_point will be returned."
When calling the (experimental-library feature) std::chrono::time_zone::to_sys() with a 'nonexistent time' (daylight saving) the hour is corrected, but the minute part remains.
According to https://en.cppreference.com/w/cpp/chrono/time_zone/to_sys the correct behaviour would be: "If tp represents a nonexistent time between two UTC time_points, those two time_points will be the same, and that time_point will be returned."
Example
Output
Expected output
I would expect all the local timestamps between 31.03.2024 02:00 and 3:00 being converted to the same UTC timestamp (2024-03-31 01:00:00).
Environment
The text was updated successfully, but these errors were encountered: