fw4: fix datetime parsing
authorJo-Philipp Wich <jo@mein.io>
Mon, 30 May 2022 21:44:34 +0000 (23:44 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 30 May 2022 21:44:34 +0000 (23:44 +0200)
commit30a7d47039cf2cee419a48c0dfa02303f94c30c4
treee3fec324bc039395c927b09a8497de10b2c4357a
parentfb9a6b2ba85bb434e6634808fd4530ac2fb2c2c0
fw4: fix datetime parsing

 - Rework `parse_date()` to mirror the fw3 parsing logic which allows
   omitting each part of the timestamp except the year

 - Introduce `fw4.datestamp()` helper which formats the given timestamp
   either as datetime or date, depending on whether time information is
   present

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/ucode/fw4.uc