aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-mime-utils.c5
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);
}