From dc357a40aaabb2998aaa224af6918035600cedda Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 28 Feb 2009 23:03:23 +0100 Subject: [PATCH] Use the date format of the user locale to display history dates --- midori/main.c | 2 +- midori/midori-browser.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/midori/main.c b/midori/main.c index 721ce469..c474f6a5 100644 --- a/midori/main.c +++ b/midori/main.c @@ -759,7 +759,7 @@ midori_history_add_items (void* data, { parent = katze_array_new (KATZE_TYPE_ARRAY); katze_item_set_added (KATZE_ITEM (parent), day); - strftime (token, sizeof (token), "%Y-%m-%d", + strftime (token, sizeof (token), "%x", localtime ((time_t *)&date)); katze_item_set_token (KATZE_ITEM (parent), token); katze_array_add_item (array, parent); diff --git a/midori/midori-browser.c b/midori/midori-browser.c index db0cc9c0..63c8989f 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -3428,7 +3428,7 @@ midori_browser_new_history_item (MidoriBrowser* browser, } if (!found) { - strftime (token, sizeof (token), "%Y-%m-%d", localtime (&now)); + strftime (token, sizeof (token), "%x", localtime (&now)); parent = katze_array_new (KATZE_TYPE_ARRAY); katze_item_set_added (KATZE_ITEM (parent), day); katze_item_set_token (KATZE_ITEM (parent), token); -- 2.39.5