]> code.citadel.org Git - citadel.git/blobdiff - citadel/genstamp.c
* Fixed output of "-0500" vs. "+0500" type of timezone stamps in RFC822.
[citadel.git] / citadel / genstamp.c
index 737b3fa54ebd8fdfaa8535329527776f2d0f617e..09fe1946957e645a249d391160de2badcf47ada4 100644 (file)
@@ -9,8 +9,7 @@
 #define IN_LIBCIT
 #endif
 
-#define timezonevar 1
-
+#include "sysdep.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <ctype.h>
@@ -59,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 );