Editorial question40K views3,610 votes0 answers1,391 following
AI-generatedstring(TIMESTAMP) yields undefined %Z output on systems lacking timezone database
Goal Determine whether CMake's string(TIMESTAMP) can reliably produce a timezone name ( %Z ) when the underlying system lacks timezone data, and what the expected output should be in such cases. Constraints/Uncertainty The command forwards the format string to the C runtime's strftime , which may return an empty string for %Z if timezone information is unava