[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Elm and year 100 (was RE:ping)
On Sat, Jan 01, 2000 at 10:29:54PM +0100, Wim Peeters wrote:
> On Oct 12, 1:12, Joseph S D Yao wrote:
> >>
> >> Elm 2.4*something with MIME/PGP patches shows the year as "100".
>
> hello Joseph
>
> yep, I fixed it quick (and dirty probably)
>
> Here you have it:
>
> elm2.4.ME+.31/lib/getarpdate.c:
>
> /*
>
> if ((year = curr_tm.tm_year) < 100)
> year += 1900;
> */
> year = curr_tm.tm_year;
> year += 1900;
>
>
> The localtime function gives back a struct where tm_year is /* years since 1900 */
>
>
> Regards
>
>
> Wim
Yes, found same, made a similar [but not same] fix.
--
/*********************************************************************\
**
** Joe Yao jsdy@tux.org - Joseph S. D. Yao
**
\*********************************************************************/