- fix library flags, includes for portability
[citadel.git] / citadel / genstamp.c
index ce9575559059b3965dec7ee042e8f9f271ee1b04..8915afa88ee6e5befa9845053915a6de3767a751 100644 (file)
@@ -51,7 +51,7 @@ void datestring(char *buf, time_t xtime, int which_format) {
        t = localtime(&xtime);
 
        /* Convert "seconds west of GMT" to "hours/minutes offset" */
-       offset = timezone;
+       offset = t->tm_gmtoff;
        if (offset > 0) {
                offsign = '-';
        }