Use the date format of the user locale to display history dates

This commit is contained in:
Christian Dywan 2009-02-28 23:03:23 +01:00
parent f799af8c0c
commit dc357a40aa
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);