comparison src/protocols/msn/msn.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 263c2db78f77
comparison
equal deleted inserted replaced
13118:8855973b487b 13119:fcde3faa1f57
1423 #endif 1423 #endif
1424 1424
1425 static char *msn_info_date_reformat(const char *field, size_t len) 1425 static char *msn_info_date_reformat(const char *field, size_t len)
1426 { 1426 {
1427 char *tmp = g_strndup(field, len); 1427 char *tmp = g_strndup(field, len);
1428 time_t t = gaim_str_to_time(tmp, FALSE); 1428 time_t t = gaim_str_to_time(tmp, FALSE, NULL, NULL, NULL);
1429 1429
1430 g_free(tmp); 1430 g_free(tmp);
1431 return g_strdup(gaim_date_format_short(localtime(&t))); 1431 return g_strdup(gaim_date_format_short(localtime(&t)));
1432 } 1432 }
1433 1433