Skip to content

Commit 435a74c

Browse files
authored
Fix danmar#391 (__TIME__ replacement might be empty depending on compiler) (danmar#441)
1 parent d0f2b99 commit 435a74c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simplecpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3236,7 +3236,7 @@ static std::string getDateDefine(const struct tm *timep)
32363236
static std::string getTimeDefine(const struct tm *timep)
32373237
{
32383238
char buf[] = "??:??:??";
3239-
strftime(buf, sizeof(buf), "%T", timep);
3239+
strftime(buf, sizeof(buf), "%H:%M:%S", timep);
32403240
return std::string("\"").append(buf).append("\"");
32413241
}
32423242

0 commit comments

Comments
 (0)