1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-29 21:39:24 +00:00
freebsd-ports/databases/msql/files/patch-aw
2001-01-27 08:55:25 +00:00

21 lines
450 B
Plaintext

--- src/msql/time.c.bak Thu Aug 19 07:33:20 1999
+++ src/msql/time.c Sat Jan 27 10:12:49 2001
@@ -239,6 +239,7 @@
return(-1);
if (year < 100 && strlen(cp2+1) == 2)
{
+#if 0 /* regression test fails otherwise */
char yearBuf[10];
struct tm *locTime;
time_t clock;
@@ -248,6 +249,9 @@
strftime(yearBuf,10,"%Y",locTime);
yearBuf[2] = 0;
year = (atoi(yearBuf) * 100) + year;
+#else
+ year += 1900;
+#endif
}
year += 4096;