[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: y2k
mehner wrote:
>
> "Brian K. White" wrote:
>
> > heh, I suppose you don't need to be alerted:
> > xwpe's file-manager is showing dates as 02.02.100 :)
> In file
> we_unix.c
>
> function
> char *e_file_info(char *filen, char *str, int *num, int sw)
>
> line 647 should read:
>
> ttm->tm_mon + 1, ttm->tm_year+1900, ttm->tm_hour, ttm->tm_min);
>
> because tm_year gives the number of years since 1900.
>
> Fritz
Verified. Thanks. Attached is the above in the form a patch for the lazy :)
--
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+>+<---<---]>>++.<++.
--- we_unix.c
+++ we_unix.c
@@ -647,1 +647,1 @@
- char *e_file_info(char *filen, char *str, int *num, int sw)
+ ttm->tm_mon + 1, ttm->tm_year+1900, ttm->tm_hour, ttm->tm_min);
- References:
- y2k
- From: "Brian K. White" <linut@squonk.net>
- Re: y2k
- From: mehner <mehner@mfh-iserlohn.de>