From 79134ecc9f85f9f772faffcd9be70945f69b273d Mon Sep 17 00:00:00 2001 From: Scott Gilbertson Date: Mon, 12 Feb 2024 17:06:08 -0500 Subject: [PATCH] Instead of time now, in help examples use 2001-02-03T04:05:06.123456 local time --- rtgui/batchqueuepanel.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rtgui/batchqueuepanel.cc b/rtgui/batchqueuepanel.cc index 1fa0b7169..f234c734c 100644 --- a/rtgui/batchqueuepanel.cc +++ b/rtgui/batchqueuepanel.cc @@ -447,9 +447,10 @@ void BatchQueuePanel::populateTemplateHelpBuffer(Glib::RefPtr b "%Y%m%d_%H%M%S", "%y/%b/%-d/" }; - auto timeNow = Glib::DateTime::create_now_local(); + auto timezone = Glib::DateTime::create_now_local().get_timezone(); + auto timeForExamples = Glib::DateTime::create_from_iso8601("2001-02-03T04:05:06.123456", timezone); for (auto fmt : dateTimeFormatExamples) { - auto result = timeNow.format(fmt); + auto result = timeForExamples.format(fmt); pos = buffer->insert_markup(pos, Glib::ustring::format("\n %tE\"", fmt, "\" = ", result, "")); }