From: Christian Dywan Date: Sat, 28 Feb 2009 22:03:23 +0000 (+0100) Subject: Use the date format of the user locale to display history dates X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc357a40aaabb2998aaa224af6918035600cedda;p=midori Use the date format of the user locale to display history dates --- 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);