From 037c2004c3fa1a7ca2235b26280d6d33229e0029 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sat, 8 Jul 2023 16:59:16 -0700 Subject: [PATCH] Include timezone in price-quote date diagnostic messages. --- libgnucash/app-utils/gnc-quotes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libgnucash/app-utils/gnc-quotes.cpp b/libgnucash/app-utils/gnc-quotes.cpp index 4c40253f30..bd19d270d2 100644 --- a/libgnucash/app-utils/gnc-quotes.cpp +++ b/libgnucash/app-utils/gnc-quotes.cpp @@ -590,21 +590,21 @@ calc_price_time(const PriceParams& p) { auto quote_time{GncDateTime(GncDate(*p.date, "m-d-y"))}; PINFO("Quote date included, using %s for %s:%s", - quote_time.format("%Y-%m-%d %H:%M:%S").c_str(), p.ns, p.mnemonic); + quote_time.format("%Y-%m-%d %H:%M:%S %z").c_str(), p.ns, p.mnemonic); return static_cast(quote_time); } catch (const std::exception &err) { auto now{GncDateTime()}; PWARN("Warning: failed to parse quote date '%s' for %s:%s because %s - will use %s", - p.date->c_str(), p.ns, p.mnemonic, err.what(), now.format("%Y-%m-%d %H:%M%S").c_str()); + p.date->c_str(), p.ns, p.mnemonic, err.what(), now.format("%Y-%m-%d %H:%M:%S %z").c_str()); return static_cast(now); } } auto now{GncDateTime()}; PINFO("No date was returned for %s:%s - will use %s", - p.ns, p.mnemonic, now.format("%Y-%m-%d %H:%M%S").c_str()); + p.ns, p.mnemonic, now.format("%Y-%m-%d %H:%M:%S %z").c_str()); return static_cast(now); }