From 72da3285140821058a0155ca35d2264b45eb3b5c Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 2 Apr 2003 13:33:28 +0000 Subject: [PATCH] * Fixed output of "-0500" vs. "+0500" type of timezone stamps in RFC822. (I think they were reversed.) --- citadel/ChangeLog | 5 ++++- citadel/genstamp.c | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/citadel/ChangeLog b/citadel/ChangeLog index 1c9357ed3..bf96da32c 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,4 +1,8 @@ $Log$ + Revision 605.32 2003/04/02 13:33:28 ajc + * Fixed output of "-0500" vs. "+0500" type of timezone stamps in RFC822. + (I think they were reversed.) + Revision 605.31 2003/04/01 05:01:08 ajc * sysdep.c: optimized MyContext() a bit, and inlined it. A little profiling revealed that this function was getting used super heavily. @@ -4612,4 +4616,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import - diff --git a/citadel/genstamp.c b/citadel/genstamp.c index b4300fe83..09fe19469 100644 --- a/citadel/genstamp.c +++ b/citadel/genstamp.c @@ -58,11 +58,11 @@ void datestring(char *buf, size_t n, time_t xtime, int which_format) { offset = timezone; #endif if (offset > 0) { - offsign = '-'; + offsign = '+'; } else { offset = 0L - offset; - offsign = '+'; + offsign = '-'; } offset = ( (offset / 3600) * 100 ) + ( offset % 60 ); -- 2.30.2