X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fgenstamp.c;fp=citadel%2Fgenstamp.c;h=5048ca6706f5764301d5c787a5e4cea07308da78;hb=32691b8512463ead219f35773371e04acfde3b03;hp=8915afa88ee6e5befa9845053915a6de3767a751;hpb=093a2262848e2d36156796bb12c678da79647126;p=citadel.git diff --git a/citadel/genstamp.c b/citadel/genstamp.c index 8915afa88..5048ca670 100644 --- a/citadel/genstamp.c +++ b/citadel/genstamp.c @@ -51,7 +51,11 @@ void datestring(char *buf, time_t xtime, int which_format) { t = localtime(&xtime); /* Convert "seconds west of GMT" to "hours/minutes offset" */ +#ifdef HAVE_STRUCT_TM_TM_GMTOFF offset = t->tm_gmtoff; +#else + offset = timezone; +#endif if (offset > 0) { offsign = '-'; }