1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix %T in strftime(3) being incorrectly implemented.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-01-19 22:23:19 +01:00
parent d4e7934828
commit b5d80ee5d1

View file

@ -250,7 +250,7 @@ size_t strftime(char* s, size_t max, const char* format, const struct tm* tm)
case 'R': OUTPUT_STRFTIME("%H:%M"); break;
case 'S': OUTPUT_INT_PADDED(tm->tm_sec, 2, '0'); break; /*O*/
case 't': OUTPUT_CHAR('\t'); break;
case 'T': OUTPUT_STRFTIME("H:%M:%S"); break;
case 'T': OUTPUT_STRFTIME("%H:%M:%S"); break;
case 'u': OUTPUT_INT(tm->tm_yday); break; /*O*/
case 'U': /*O*/
// TODO: These require a bit of intelligence.