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
This is not easy to do, since Boost.DateTime does not allow to create a time zone object that reflects the time zone set on the system. There doesn't seem to be a portable way to obtain this information either, at least I'm not aware of one. I reported this to Boost.DateTime, but the chances for this to be implemented soon are rather slim, unfortunately.
It could be useful to have configuration option to use UTC time for file names.
Instead of having log file names with times in unknown time zone, the timezone would be known.
Especially useful if already using attributes::utc_clock for TimeStamp
Looks like local_time_traits::get_clock() is hardcoded, with no way to use utc_time_traits
Activity
Lastique commentedon Jul 2, 2023
This is not easy to do, since Boost.DateTime does not allow to create a time zone object that reflects the time zone set on the system. There doesn't seem to be a portable way to obtain this information either, at least I'm not aware of one. I reported this to Boost.DateTime, but the chances for this to be implemented soon are rather slim, unfortunately.
otopetrik commentedon Oct 9, 2023
It could be useful to have configuration option to use UTC time for file names.
Instead of having log file names with times in unknown time zone, the timezone would be known.
Especially useful if already using
attributes::utc_clockforTimeStampLooks like
local_time_traits::get_clock()is hardcoded, with no way to useutc_time_traitslog/src/text_file_backend.cpp
Line 242 in ae9bf80