Mercurial > pidgin.yaz
diff src/gtkpounce.c @ 13104:e1e5462b7d81
[gaim-migrate @ 15466]
Rework lots of date parsing. I either introduced a whole lot of bugs, or I've made sure all dates are localized properly now. Only time will tell which it is... ;)
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 02 Feb 2006 19:50:51 +0000 |
parents | 0aa231ebbfd5 |
children | fcde3faa1f57 |
line wrap: on
line diff
--- a/src/gtkpounce.c Thu Feb 02 19:39:12 2006 +0000 +++ b/src/gtkpounce.c Thu Feb 02 19:50:51 2006 +0000 @@ -1431,8 +1431,6 @@ if (gaim_pounce_action_is_enabled(pounce, "popup-notify")) { - time_t now = time(NULL); - char date[64]; char *tmp; const char *name_shown; const char *reason; @@ -1473,12 +1471,11 @@ if ((name_shown = gaim_account_get_alias(account)) == NULL) name_shown = gaim_account_get_username(account); - strftime(date, sizeof(date), "%c", localtime(&now)); if (reason == NULL) - gaim_notify_info(NULL, name_shown, tmp, date); + gaim_notify_info(NULL, name_shown, tmp, gaim_date_format_full(time(NULL))); else { - char *tmp2 = g_strdup_printf("%s\n\n%s", reason, date); + char *tmp2 = g_strdup_printf("%s\n\n%s", reason, gaim_date_format_full(time(NULL))); gaim_notify_info(NULL, name_shown, tmp, tmp2); g_free(tmp2); }