comparison src/gtkpounce.c @ 13119:fcde3faa1f57

[gaim-migrate @ 15481] This adds support for displaying log timestamps in their original timezone. If your OS's definition of struct tm sucks, then the log timestamps will show up in your local timezone, but converted, so the time is accurate. Yay! Anyway, this all works, as I've renamed lots of my log files locally, but currently, there's no code to save new logs in this name format. That's held up on a portability issue and backwards compatibility issue. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Sat, 04 Feb 2006 20:55:52 +0000
parents e1e5462b7d81
children 18d320fdf28c
comparison
equal deleted inserted replaced
13118:8855973b487b 13119:fcde3faa1f57
1470 */ 1470 */
1471 if ((name_shown = gaim_account_get_alias(account)) == NULL) 1471 if ((name_shown = gaim_account_get_alias(account)) == NULL)
1472 name_shown = gaim_account_get_username(account); 1472 name_shown = gaim_account_get_username(account);
1473 1473
1474 if (reason == NULL) 1474 if (reason == NULL)
1475 gaim_notify_info(NULL, name_shown, tmp, gaim_date_format_full(time(NULL))); 1475 {
1476 gaim_notify_info(NULL, name_shown, tmp, gaim_date_format_full(NULL));
1477 }
1476 else 1478 else
1477 { 1479 {
1478 char *tmp2 = g_strdup_printf("%s\n\n%s", reason, gaim_date_format_full(time(NULL))); 1480 char *tmp2 = g_strdup_printf("%s\n\n%s", reason, gaim_date_format_full(NULL));
1479 gaim_notify_info(NULL, name_shown, tmp, tmp2); 1481 gaim_notify_info(NULL, name_shown, tmp, tmp2);
1480 g_free(tmp2); 1482 g_free(tmp2);
1481 } 1483 }
1482 g_free(tmp); 1484 g_free(tmp);
1483 } 1485 }