Mercurial > pidgin
comparison src/log.c @ 13164:87ca2f6bd0dc
[gaim-migrate @ 15527]
%Z on win32 returns a time zone name, not a time zone abbreviation. Until I can find out how to get the proper abbreviation, let's not use one there.
committer: Tailor Script <tailor@pidgin.im>
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Tue, 07 Feb 2006 18:42:19 +0000 |
| parents | dc0375c4984a |
| children | b04212d6b115 |
comparison
equal
deleted
inserted
replaced
| 13163:b230ed49c5d1 | 13164:87ca2f6bd0dc |
|---|---|
| 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 | |
| 646 tz = gaim_escape_filename(gaim_utf8_strftime("%Z", tm)); | 649 tz = gaim_escape_filename(gaim_utf8_strftime("%Z", tm)); |
| 650 #endif | |
| 647 date = gaim_utf8_strftime("%Y-%m-%d.%H%M%S%z", tm); | 651 date = gaim_utf8_strftime("%Y-%m-%d.%H%M%S%z", tm); |
| 648 | 652 |
| 649 filename = g_strdup_printf("%s%s%s", date, tz, ext ? ext : ""); | 653 filename = g_strdup_printf("%s%s%s", date, tz, ext ? ext : ""); |
| 650 | 654 |
| 651 path = g_build_filename(dir, filename, NULL); | 655 path = g_build_filename(dir, filename, NULL); |
