IT WORKS (its scuffed as hell but IT WORKS)

This commit is contained in:
Mars 2025-04-30 02:06:23 -04:00
parent 2be2613e12
commit f6a7bee047
Signed by: pupbrained
GPG key ID: 0FF5B8826803F895
9 changed files with 635 additions and 416 deletions

View file

@ -15,12 +15,7 @@ namespace {
const year_month_day ymd = year_month_day { floor<days>(system_clock::now()) };
try {
return std::format(std::locale(""), "{:%B %d}", ymd);
} catch (const std::runtime_error& e) {
warn_log("Could not retrieve or use system locale ({}). Falling back to default C locale.", e.what());
return std::format(std::locale::classic(), "{:%B %d}", ymd);
}
return std::format("{:%B %d}", ymd);
}
fn log_timing(const std::string& name, const std::chrono::steady_clock::duration& duration) -> void {