* Fixed output of "-0500" vs. "+0500" type of timezone stamps in RFC822.
[citadel.git] / citadel / genstamp.c
index b4300fe83b9236ca62ebfb32a0f38216cc09dcec..09fe1946957e645a249d391160de2badcf47ada4 100644 (file)
@@ -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 );