https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61310
Bug ID: 61310 Summary: Regression, CTIME intrinsic incorrect result string Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran Assignee: unassigned at gcc dot gnu.org Reporter: jb at gcc dot gnu.org As a result of PR 47432, the CTIME intrinsic was changed to use the ctime_r() function if available instead of the C stdlib ctime(). However, due to some problems that was changed to use strftime with the "%c" specifier, see PR 47802. Now it seems that on the mingw target, strftime(...,"%c",...) doesn't produce the same output as ctime{_r}() *sigh*, see https://stackoverflow.com/questions/23787340/format-of-ctime-output-in-fortran . Probably we could use something like the implementation suggested in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47802#c14