gnucash stable: Include timezone in price-quote date diagnostic messages.
John Ralls
jralls at code.gnucash.org
Sat Jul 8 20:00:11 EDT 2023
Updated via https://github.com/Gnucash/gnucash/commit/037c2004 (commit)
from https://github.com/Gnucash/gnucash/commit/133ac886 (commit)
commit 037c2004c3fa1a7ca2235b26280d6d33229e0029
Author: John Ralls <jralls at ceridwen.us>
Date: Sat Jul 8 16:59:16 2023 -0700
Include timezone in price-quote date diagnostic messages.
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<time64>(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<time64>(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<time64>(now);
}
Summary of changes:
libgnucash/app-utils/gnc-quotes.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
More information about the gnucash-changes
mailing list