Can you compile this test file and report back?
\version "2.23.7"
#(debug-enable 'backtrace)
#(display (current-time))
#(newline)
#(display (localtime (current-time)))
#(newline)
#(display (strftime "%d.%m.%Y" (localtime (current-time))))
#(newline)
Yields:
Starte lilypond.exe 2.23.7 [Ohne Titel]...
»C:/Users/mgd/AppData/Local/Temp/frescobaldi-o7oy9q4g/tmpbiiy5m9i/document.ly«
wird verarbeitet
Analysieren...
C:/Users/mgd/AppData/Local/Temp/frescobaldi-o7oy9q4g/tmpbiiy5m9i/document.ly:8:2:
Fehler: GUILE signalisierte einen Fehler für den hier beginnenden
Ausdruck
#
(display (localtime (current-time)))
Invalid argument
C:/Users/mgd/AppData/Local/Temp/frescobaldi-o7oy9q4g/tmpbiiy5m9i/document.ly:11:2:
Fehler: GUILE signalisierte einen Fehler für den hier beginnenden
Ausdruck
#
(display (strftime "%d.%m.%Y" (localtime (current-time))))
Invalid argument
-499092417