mirror of
https://github.com/python/cpython.git
synced 2025-07-07 11:25:30 +00:00
gh-100388: Change undefined __DATE__ to the Unix epoch (#100389)
This commit is contained in:
parent
3146a25e97
commit
4f14b7e30c
2 changed files with 4 additions and 2 deletions
|
@ -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.
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue