1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-12 22:50:59 +00:00
serenity/Userland
Sam Atkins 4d2e18fb07 LibCore: Output invalid DateTime::to_string() specifiers as literals
While working on #13764 I noticed that DateTime::to_string() would just
return an empty String if the format included an invalid specifier
(eg `%Q`). This seems to be a mistake. POSIX date(1), which I believe
we are basing our implementation on, only replaces valid specifiers,
and any invalid ones get included as literals in the output.

For example, on Linux `date "+%Quiz"` returns "%Quiz", but we were
returning "".
2022-04-21 16:32:18 +02:00
..
Applets LibAudio+Userland: Use new audio queue in client-server communication 2022-04-21 13:55:00 +02:00
Applications LibAudio+Userland: Use new audio queue in client-server communication 2022-04-21 13:55:00 +02:00
Demos Mandelbrot: Add BMP and QOI image formats as options for export 2022-04-20 08:19:25 -04:00
DevTools Userland: Always construct Application with try_create() 2022-04-18 12:57:34 +02:00
DynamicLoader Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
Games Pong: Explicitly clear held keys in Game::reset() 2022-04-15 00:13:09 +02:00
Libraries LibCore: Output invalid DateTime::to_string() specifiers as literals 2022-04-21 16:32:18 +02:00
Services AudioServer: Auto-pause new clients 2022-04-21 13:55:00 +02:00
Shell Shell: Highlight commands with a hyperlink to open their help pages 2022-04-21 09:12:37 +04:30
Utilities LibAudio+Userland: Use new audio queue in client-server communication 2022-04-21 13:55:00 +02:00
CMakeLists.txt Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00