Use the date format of the user locale to display history dates
This commit is contained in:
parent
f799af8c0c
commit
dc357a40aa
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue