Instead of time now, in help examples use 2001-02-03T04:05:06.123456 local time

This commit is contained in:
Scott Gilbertson
2024-02-12 17:06:08 -05:00
parent 5d7586bab4
commit 79134ecc9f

View File

@@ -447,9 +447,10 @@ void BatchQueuePanel::populateTemplateHelpBuffer(Glib::RefPtr<Gtk::TextBuffer> 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<tt> <b>%tE\"", fmt, "\"</b> = <i>", result, "</i></tt>"));
}