From a39cd89c7d6fbef0c8b3956e17483eb64d73a196 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 26 Apr 2000 19:53:49 +0000 Subject: fix format specifier for time zone. Fix typo in month names array. * camel-mime-utils.c (header_format_date): fix format specifier for time zone. Fix typo in month names array. svn path=/trunk/; revision=2640 --- camel/ChangeLog | 5 +++++ camel/camel-mime-utils.c | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 654781d18b..062c600b32 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2000-04-26 Dan Winship + + * camel-mime-utils.c (header_format_date): fix format specifier + for time zone. Fix typo in month names array. + 2000-04-26 NotZed * camel-seekable-substream.c (stream_seek): Changed to have diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index ceb528ce28..fe1e7d51d8 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -1807,7 +1807,7 @@ static struct { static char *tz_months [] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", - "Jul", "Aug", "Sep", "Oct", "Nove", "Dec" + "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; char * @@ -1825,11 +1825,10 @@ header_format_date(time_t time, int offset) memcpy(&tm, gmtime(&time), sizeof(tm)); - return g_strdup_printf("%02d %s %04d %02d:%02d:%02d %c%04d", + return g_strdup_printf("%02d %s %04d %02d:%02d:%02d %+05d", tm.tm_mday, tz_months[tm.tm_mon], tm.tm_year + 1900, tm.tm_hour, tm.tm_min, tm.tm_sec, - offset>=0?'+':'-', offset); } -- cgit