gh-100388: Change undefined __DATE__ to the Unix epoch (#100389)

This commit is contained in:
Samuel Tyler
2025-03-04 00:59:46 +11:00
committed by GitHub
parent 3146a25e97
commit 4f14b7e30c
2 changed files with 4 additions and 2 deletions

View File

@@ -0,0 +1,2 @@
Fix the ``platform._sys_version()`` method when ``__DATE__`` is undefined at
buildtime by changing default buildtime datetime string to the UNIX epoch.

View File

@@ -13,7 +13,7 @@
#ifdef __DATE__
#define DATE __DATE__
#else
#define DATE "xx/xx/xx"
#define DATE "Jan 01 1970"
#endif
#endif
@@ -21,7 +21,7 @@
#ifdef __TIME__
#define TIME __TIME__
#else
#define TIME "xx:xx:xx"
#define TIME "00:00:00"
#endif
#endif