comparison src/log.c @ 13333:b04212d6b115

[gaim-migrate @ 15703] win32 TZ name to abbreviation conversion. This make the behavior consistent across platforms. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Mon, 27 Feb 2006 08:49:14 +0000
parents 87ca2f6bd0dc
children af03d3b20cd2
comparison
equal deleted inserted replaced
13332:97545c71d208 13333:b04212d6b115
641 return; 641 return;
642 642
643 gaim_build_dir (dir, S_IRUSR | S_IWUSR | S_IXUSR); 643 gaim_build_dir (dir, S_IRUSR | S_IWUSR | S_IXUSR);
644 644
645 tm = localtime(&log->time); 645 tm = localtime(&log->time);
646 #ifdef _WIN32
647 tz = "";
648 #else
649 tz = gaim_escape_filename(gaim_utf8_strftime("%Z", tm)); 646 tz = gaim_escape_filename(gaim_utf8_strftime("%Z", tm));
650 #endif
651 date = gaim_utf8_strftime("%Y-%m-%d.%H%M%S%z", tm); 647 date = gaim_utf8_strftime("%Y-%m-%d.%H%M%S%z", tm);
652 648
653 filename = g_strdup_printf("%s%s%s", date, tz, ext ? ext : ""); 649 filename = g_strdup_printf("%s%s%s", date, tz, ext ? ext : "");
654 650
655 path = g_build_filename(dir, filename, NULL); 651 path = g_build_filename(dir, filename, NULL);