feat: sane date format

This commit is contained in:
Robert Perce 2026-04-05 13:20:00 -05:00
parent c12975926d
commit 4c710dcd20
4 changed files with 17 additions and 13 deletions

View file

@ -0,0 +1,7 @@
update contacts
set birthday = substr(birthday, 3, 2) || '-' || substr(birthday, 5, 2)
where birthday GLOB '--[01][0-9][0-3][0-9]';
update contacts
set birthday = substr(birthday, 1, 4) || '-' || substr(birthday, 5, 2) || '-' || substr(birthday, 7, 2)
where birthday GLOB '[0-9][0-9][0-9][0-9][01][0-9][0-3][0-9]';