mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
LibC: Use an explicit fixme for unsupported formats in strftime
This commit is contained in:
1 parent
df91038f4a
commit
ce1809234d
1 file changed
+4
-1
@@ -271,7 +271,6 @@ char* asctime_r(const struct tm* tm, char* buffer)
|
||||
return buffer;
|
||||
}
|
||||
|
||||
// FIXME: Some formats are not supported.
|
||||
size_t strftime(char* destination, size_t max_size, char const* format, const struct tm* tm)
|
||||
{
|
||||
tzset();
|
||||
@@ -443,6 +442,10 @@ size_t strftime(char* destination, size_t max_size, char const* format, const st
|
||||
case 'Y':
|
||||
builder.appendff("{}", tm->tm_year + 1900);
|
||||
break;
|
||||
case 'z':
|
||||
case 'Z':
|
||||
dbgln("FIXME: Unsupported format in strftime: %z/%Z");
|
||||
return 0;
|
||||
case '%':
|
||||
builder.append('%');
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user