* Fixed output of "-0500" vs. "+0500" type of timezone stamps in RFC822.
authorArt Cancro <ajc@citadel.org>
Wed, 2 Apr 2003 13:33:28 +0000 (13:33 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 2 Apr 2003 13:33:28 +0000 (13:33 +0000)
  (I think they were reversed.)

citadel/ChangeLog
citadel/genstamp.c

index 1c9357ed34a5512b4712c63499e56e13ee614541..bf96da32cd31a48bab382b8c734fda9dfa8ddc16 100644 (file)
@@ -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 <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
-
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 );