1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/lang/eperl/files/patch-aa
Akinori MUSHA 76ddcd42b7 Add a Y2K fix patch.
PR:		ports/18321
Submitted by:	MAWATARI Ryota <ma@neko.net>
2000-05-01 10:57:55 +00:00

14 lines
482 B
Plaintext

--- eperl_sys.c.original Mon Jul 27 17:41:34 1998
+++ eperl_sys.c Mon May 1 15:07:34 2000
@@ -239,8 +239,8 @@
char timestr[128];
tm = localtime(t);
- sprintf(timestr, "%02d-%02d-19%02d %02d:%02d",
- tm->tm_mday, tm->tm_mon+1, tm->tm_year,
+ sprintf(timestr, "%02d-%02d-%04d %02d:%02d",
+ tm->tm_mday, tm->tm_mon+1, tm->tm_year+1900,
tm->tm_hour, tm->tm_min);
return strdup(timestr);
}