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
..
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-02-10 21:35:17 +01:00
2022-04-01 21:24:45 +01:00
2022-04-11 21:09:42 +02:00
2022-04-11 21:09:42 +02:00
2022-04-11 00:08:48 +02:00
2022-04-01 21:24:45 +01:00
2022-03-27 16:41:39 -07:00
2022-04-16 13:27:51 -04:00
2022-04-11 00:08:48 +02:00
2022-04-21 16:32:18 +02:00
2022-04-03 15:18:20 +01:00
2022-03-10 18:04:26 -08:00
2022-04-13 16:00:17 +02:00
2022-04-13 16:00:17 +02:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-18 12:57:34 +02:00
2022-03-10 18:04:26 -08:00
2022-04-11 00:08:48 +02:00
2022-04-11 00:08:48 +02:00
2022-04-01 21:24:45 +01:00
2022-03-10 18:04:26 -08:00
2022-02-18 23:31:28 +00:00
2022-04-16 13:27:51 -04:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-11 00:08:48 +02:00
2022-04-01 21:24:45 +01:00
2022-04-16 13:27:51 -04:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-03-10 18:04:26 -08:00
2022-04-01 21:24:45 +01:00
2022-04-03 12:21:05 +02:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-09 12:21:43 +02:00
2022-04-01 21:24:45 +01:00
2022-04-21 13:55:00 +02:00
2022-04-01 21:24:45 +01:00
2022-04-16 13:27:51 -04:00
2022-04-16 13:27:51 -04:00
2022-04-16 13:27:51 -04:00
2022-04-16 13:27:51 -04:00
2022-04-11 21:09:42 +02:00
2022-04-11 21:09:42 +02:00
2022-04-01 21:24:45 +01:00
2022-03-10 18:04:26 -08:00
2022-03-10 18:04:26 -08:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-02-16 19:49:41 -05:00