[gthumb] rename series: fixed date format not applied correctly



commit 77b0e6186579fccfca8a516b1399564228e01793
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Wed Aug 10 07:49:00 2022 +0200

    rename series: fixed date format not applied correctly
    
    Closes #235

 extensions/rename_series/dlg-rename-series.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/extensions/rename_series/dlg-rename-series.c b/extensions/rename_series/dlg-rename-series.c
index 60c784fe..cc0612da 100644
--- a/extensions/rename_series/dlg-rename-series.c
+++ b/extensions/rename_series/dlg-rename-series.c
@@ -162,6 +162,12 @@ template_eval_cb (TemplateFlags   flags,
        char         *path;
        GTimeVal      timeval;
 
+       if ((parent_code == 'D') || (parent_code == 'M')) {
+               /* strftime code, return the code itself. */
+               _g_string_append_template_code (result, code, args);
+               return FALSE;
+       }
+
        switch (code) {
        case '#':
                text = _g_template_replace_enumerator (args[0], template_data->n);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]