X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fgenstamp.c;fp=citadel%2Fgenstamp.c;h=8915afa88ee6e5befa9845053915a6de3767a751;hb=09d82e2621017aca1ae107d0dc9d57a7820f56b1;hp=ce9575559059b3965dec7ee042e8f9f271ee1b04;hpb=693a4c3764d90b73dd7edef3e568fb3d3303a868;p=citadel.git diff --git a/citadel/genstamp.c b/citadel/genstamp.c index ce9575559..8915afa88 100644 --- a/citadel/genstamp.c +++ b/citadel/genstamp.c @@ -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 = '-'; }