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-01-04 07:38:42 +00: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-01-24 07:50:32 +00:00
2022-01-01 17:33:43 +00: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-01-21 18:34:24 +01:00
2022-01-21 18:34:24 +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-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-01-24 22:36:09 +01: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-02-06 10:28:19 +01:00
2022-02-06 17:28:17 +00:00
2022-01-13 15:16:12 +03:30
2022-01-28 23:40:25 +01:00
2022-01-12 14:55:19 +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-01-02 18:08:02 +01:00
2022-02-16 19:49:41 -05:00