From 94e0c9205e6049c6b3295145af7fd39156e77543 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Wed, 3 Aug 2022 08:51:28 -0400 Subject: add upstream 11.23 --- zen/format_unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zen/format_unit.cpp') diff --git a/zen/format_unit.cpp b/zen/format_unit.cpp index 13280b68..2aa6e094 100644 --- a/zen/format_unit.cpp +++ b/zen/format_unit.cpp @@ -170,7 +170,7 @@ std::wstring zen::formatUtcToLocalTime(time_t utcTime) { auto errorMsg = [&] { return _("Error") + L" (time_t: " + numberTo(utcTime) + L')'; }; - const TimeComp& loc = getLocalTime(utcTime); + const TimeComp& loc = getLocalTime(utcTime); //returns TimeComp() on error std::wstring dateString = utfTo(formatTime(Zstr("%x %X"), loc)); return !dateString.empty() ? dateString : errorMsg(); -- cgit