X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fdtime.c;fp=sbr%2Fdtime.c;h=3a37fe35b801ccaf49852cca1034e811f0556647;hp=57b61c8824f8573177bd6c32682c94c55154bc8c;hb=f1f1c819cd3663a9912914d6f9df92ee2cd86a6f;hpb=73b48d6c0c6ed51bcf0f3b3388ffc6beb372c4c5 diff --git a/sbr/dtime.c b/sbr/dtime.c index 57b61c8..3a37fe3 100644 --- a/sbr/dtime.c +++ b/sbr/dtime.c @@ -412,8 +412,11 @@ dmktime (struct tws *tw) year = tw->tw_year; result = 0; - if (year < 100) - year += 1900; + if (year < 1970) + year += 1900; + + if (year < 1970) + year += 100; for (i = 1970; i < year; i++) result += dysize (i);