mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-10 07:04:03 +00:00
19 lines
528 B
C
19 lines
528 B
C
--- ./source3/utils/net_time.c.orig 2010-01-18 12:38:09.000000000 +0100
|
|
+++ ./source3/utils/net_time.c 2010-01-22 02:42:51.000000000 +0100
|
|
@@ -86,9 +86,15 @@
|
|
return "unknown";
|
|
}
|
|
|
|
+#if defined(FREEBSD)
|
|
+ fstr_sprintf(s, "%02d%02d%02d%02d%02d.%02d",
|
|
+ tm->tm_year+1900,tm->tm_mon+1,tm->tm_mday,
|
|
+ tm->tm_hour,tm->tm_min,tm->tm_sec);
|
|
+#else
|
|
fstr_sprintf(s, "%02d%02d%02d%02d%04d.%02d",
|
|
tm->tm_mon+1, tm->tm_mday, tm->tm_hour,
|
|
tm->tm_min, tm->tm_year + 1900, tm->tm_sec);
|
|
+#endif /* !FREEBSD */
|
|
return s;
|
|
}
|
|
|