diff options
author | Dan Winship <danw@src.gnome.org> | 2000-04-27 03:53:49 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-04-27 03:53:49 +0800 |
commit | a39cd89c7d6fbef0c8b3956e17483eb64d73a196 (patch) | |
tree | 98dc49fa40bacbcd35db82451ebc1466811f0b2a /camel | |
parent | 0b4a83d6d1dcfb591693116392627c9402dcfb7d (diff) | |
download | gsoc2013-evolution-a39cd89c7d6fbef0c8b3956e17483eb64d73a196.tar.gz gsoc2013-evolution-a39cd89c7d6fbef0c8b3956e17483eb64d73a196.tar.zst gsoc2013-evolution-a39cd89c7d6fbef0c8b3956e17483eb64d73a196.zip |
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
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | 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 <danw@helixcode.com> + + * camel-mime-utils.c (header_format_date): fix format specifier + for time zone. Fix typo in month names array. + 2000-04-26 NotZed <NotZed@HelixCode.com> * 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); } |