libpurple/log.c

changeset 40170
c69c52a5ffe7
parent 40125
a7acc7b00d79
child 40171
564fcabca6d9
equal deleted inserted replaced
40158:360997c25b1a 40170:c69c52a5ffe7
1702 &day, &hour, &minute, &second, &year) != 6) 1702 &day, &hour, &minute, &second, &year) != 6)
1703 { 1703 {
1704 purple_debug_warning("log", "invalid date format\n"); 1704 purple_debug_warning("log", "invalid date format\n");
1705 } 1705 }
1706 /* Ugly hack, in case current locale is not English */ 1706 /* Ugly hack, in case current locale is not English */
1707 if (purple_strequal(month_str, "Jan")) { 1707 month = purple_get_month(month_str);
1708 month = 1;
1709 } else if (purple_strequal(month_str, "Feb")) {
1710 month = 2;
1711 } else if (purple_strequal(month_str, "Mar")) {
1712 month = 3;
1713 } else if (purple_strequal(month_str, "Apr")) {
1714 month = 4;
1715 } else if (purple_strequal(month_str, "May")) {
1716 month = 5;
1717 } else if (purple_strequal(month_str, "Jun")) {
1718 month = 6;
1719 } else if (purple_strequal(month_str, "Jul")) {
1720 month = 7;
1721 } else if (purple_strequal(month_str, "Aug")) {
1722 month = 8;
1723 } else if (purple_strequal(month_str, "Sep")) {
1724 month = 9;
1725 } else if (purple_strequal(month_str, "Oct")) {
1726 month = 10;
1727 } else if (purple_strequal(month_str, "Nov")) {
1728 month = 11;
1729 } else if (purple_strequal(month_str, "Dec")) {
1730 month = 12;
1731 }
1732 if (lasttime) 1708 if (lasttime)
1733 g_date_time_unref(lasttime); 1709 g_date_time_unref(lasttime);
1734 lasttime = g_date_time_new_local(year, month, day, 1710 lasttime = g_date_time_new_local(year, month, day,
1735 hour, minute, second); 1711 hour, minute, second);
1736 } 1712 }

mercurial