comparison src/log.c @ 13581:a33208cc6247

[gaim-migrate @ 15963] Display the log's original timestamp on Windows. This is less confusing than my crazy crackpot idea before... AND, the logs still sort by 'real' time relative to the user. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 04 Apr 2006 23:45:23 +0000
parents 724119af64f3
children 69264c313521
comparison
equal deleted inserted replaced
13580:dc28bca6a7b5 13581:a33208cc6247
696 if (gaim_str_has_suffix(filename, ext) && 696 if (gaim_str_has_suffix(filename, ext) &&
697 strlen(filename) >= (17 + strlen(ext))) 697 strlen(filename) >= (17 + strlen(ext)))
698 { 698 {
699 GaimLog *log; 699 GaimLog *log;
700 GaimLogCommonLoggerData *data; 700 GaimLogCommonLoggerData *data;
701 struct tm tm;
701 #if defined (HAVE_TM_GMTOFF) && defined (HAVE_STRUCT_TM_TM_ZONE) 702 #if defined (HAVE_TM_GMTOFF) && defined (HAVE_STRUCT_TM_TM_ZONE)
702 struct tm tm;
703 long tz_off; 703 long tz_off;
704 const char *rest; 704 const char *rest;
705 time_t stamp = gaim_str_to_time(gaim_unescape_filename(filename), FALSE, &tm, &tz_off, &rest); 705 time_t stamp = gaim_str_to_time(gaim_unescape_filename(filename), FALSE, &tm, &tz_off, &rest);
706 char *end; 706 char *end;
707 707
720 tm.tm_zone = tmp; 720 tm.tm_zone = tmp;
721 log = gaim_log_new(type, name, account, NULL, stamp, &tm); 721 log = gaim_log_new(type, name, account, NULL, stamp, &tm);
722 g_free(tmp); 722 g_free(tmp);
723 } 723 }
724 #else 724 #else
725 time_t stamp = gaim_str_to_time(filename, FALSE, NULL, NULL, NULL); 725 time_t stamp = gaim_str_to_time(filename, FALSE, NULL, &tm, NULL);
726 726
727 log = gaim_log_new(type, name, account, NULL, stamp, NULL); 727 log = gaim_log_new(type, name, account, NULL, stamp, &tm);
728 #endif 728 #endif
729 729
730 log->logger = logger; 730 log->logger = logger;
731 log->logger_data = data = g_new0(GaimLogCommonLoggerData, 1); 731 log->logger_data = data = g_new0(GaimLogCommonLoggerData, 1);
732 data->path = g_build_filename(path, filename, NULL); 732 data->path = g_build_filename(path, filename, NULL);