V61%DHDURZ1.BITNET@cunyvm.cuny.edu (Ronald Lamprecht) (06/22/89)
The improved library routine 'ctime.c' as posted in (1) and (2) contains a bug: The function 'ctime' used by 'localtime' and 'gmttime' stores the absolute year count into 'tm.tm_year' instead of the offset to 1900. Localtime and gmttime will therefore return wrong values. Furthermore I have added the external variable timezone which may be referenced by programs using localtime. I have included a uuencoded (sorry, but I'm on EBCDIC-Bitnet) cdiff for ctime.c. (1) pc13 update (2) Re: commands/date.c bug + fix by Andy Tanenbaum from 3 Jan 89 Bitnet: V61@DHDURZ1 Ronald Lamprecht UUCP: ...!unido!DHDURZ1.bitnet!V61 Theoretische Physik ARPAnet: V61%DHDURZ1.BITNET@CUNYVM.CUNY.EDU (Heidelberg, West Germany) --------------------------------cut here------------------------------------ begin 644 ctime.c_cdiff M*BHJ(&-T:6UE+F-?<#$S"51H=2!!<'(@,C@@,C(Z-#(Z-3<@,3DX.0HM+2T@ M8W1I;64N8PE4:'4@2G5N(#(P(# S.C4T.C(T(#$Y.#D**BHJ*BHJ*BHJ*BHJ M*BHJ"BHJ*B Q."PR,R J*BHJ"BTM+2 Q."PR-" M+2TM"B @"B @<W1A=&EC M('-T<G5C="!T;2!T;3L*("!S=&%T:6,@8VAA<B!B=69;,C9=.PHK(&QO;F<@ M("!T:6UE>F]N92 ](#!,.PH@( H@(&-H87(@*F-T:6UE*'!T*0H@(&QO;F<@ M*G!T.PHJ*BHJ*BHJ*BHJ*BHJ*BH**BHJ(#,Y+#0U("HJ*BH*(" )"71M+G1M M7WEE87(@*ST@,3L*(" )"70@+3T@>65A<CL*(" )?0HA( ET;2YT;5]Y96%R M("L](#$Y-S ["B @"B @"2\J('0@:7,@;F]W('1H92!O9F9S970@:6YT;R!T M:&4@8W5R<F5N="!Y96%R+"!I;B!S96-O;F1S+B J+PH@( ET;2YT;5]Y9&%Y M(#T@*'0O1$%9*3L)"2\J(&1A>2 C(&]F('1H92!Y96%R+"!*86X@,2 ](# @ M*B\*+2TM(#0P+#0V("TM+2T*(" )"71M+G1M7WEE87(@*ST@,3L*(" )"70@ M+3T@>65A<CL*(" )?0HA( ET;2YT;5]Y96%R("L](#<P.PH@( H@( DO*B!T M(&ES(&YO=R!T:&4@;V9F<V5T(&EN=&\@=&AE(&-U<G)E;G0@>65A<BP@:6X@ M<V5C;VYD<RX@*B\*(" )=&TN=&U?>61A>2 ]("AT+T1!62D["0DO*B!D87D@ M(R!O9B!T:&4@>65A<BP@2F%N(#$@/2 P("HO"BHJ*BHJ*BHJ*BHJ*BHJ*@HJ M*BH@-S8L.#(@*BHJ*@H@( DO*B!'96YE<F%T92!O=71P=70@:6X@05-#24D@ M:6X@8G5F+B J+PH@( ES<')I;G1F*&)U9BP@(B5S("5S("4R9" E,#)D.B4P M,F0Z)3 R9" E9%QN(BP*(" )"61A>7-;=&TN=&U?=V1A>5TL(&UO;G1H<UMT M;2YT;5]M;VY=+ HA( D)=&TN=&U?;61A>2P@=&TN=&U?:&]U<BP@=&TN=&U? M;6EN+"!T;2YT;5]S96,L('1M+G1M7WEE87(I.PH@( ER971U<FX@8G5F.PH@ M('T*(" *+2TM(#<W+#@S("TM+2T*(" )+RH@1V5N97)A=&4@;W5T<'5T(&EN M($%30TE)(&EN(&)U9BX@*B\*(" )<W!R:6YT9BAB=68L("(E<R E<R E,F0@ M)3 R9#HE,#)D.B4P,F0@)61<;B(L"B @"0ED87ES6W1M+G1M7W=D87E=+"!M M;VYT:'-;=&TN=&U?;6]N72P*(2 )"71M+G1M7VUD87DL('1M+G1M7VAO=7(L M('1M+G1M7VUI;BP@=&TN=&U?<V5C+"!T;2YT;5]Y96%R*S$Y,# I.PH@( ER 2971U<FX@8G5F.PH@('T*(" * end --------------------------------end-----------------------------------------