stockfish/date.patch

19 lines
687 B
Diff
Raw Normal View History

Index: Stockfish-sf_15.1/src/misc.cpp
===================================================================
--- Stockfish-sf_15.1.orig/src/misc.cpp
+++ Stockfish-sf_15.1/src/misc.cpp
@@ -156,13 +156,6 @@ string engine_info(bool to_uci) {
ss << "-";
#ifdef GIT_DATE
ss << GIT_DATE;
- #else
- const string months("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec");
- string month, day, year;
- stringstream date(__DATE__); // From compiler, format is "Sep 21 2008"
-
- date >> month >> day >> year;
- ss << year << setw(2) << setfill('0') << (1 + months.find(month) / 4) << setw(2) << setfill('0') << day;
#endif
ss << "-";