X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fdtime.c;h=6acfaeb63477c51fb4d383003b6ccb1d33fd38e2;hb=90986dddba4b24b0449238f86f836581cfb93938;hp=a7c15747f55844ebeea4dd6cae6cd8079bacef36;hpb=0cd4ef27dfd7ab539a3217287795d4d9732c18d0;p=mmh diff --git a/sbr/dtime.c b/sbr/dtime.c index a7c1574..6acfaeb 100644 --- a/sbr/dtime.c +++ b/sbr/dtime.c @@ -280,7 +280,10 @@ dasctime (struct tws *tw, int flags) /* - * Get the timezone for given offset + * Get the timezone for given offset. + * This used to return a three-letter abbreviation for some offset + * values. But not many. Until there's a good way to do that, + * return the string representation of the numeric offset. */ char * @@ -297,11 +300,6 @@ dtimezone (int offset, int flags) hours = offset / 60; } - if (!(flags & TW_ZONE) && mins == 0) { - tzset(); - return ((flags & TW_DST) ? tzname[1] : tzname[0]); - } - #ifdef ADJUST_NUMERIC_ONLY_TZ_OFFSETS_WRT_DST if (flags & TW_DST) hours += 1;