This commit is contained in:
2020-09-15 15:00:30 +00:00
parent 3e25eef30b
commit 8347d56113

View File

@@ -4,6 +4,18 @@
todo: date / time formating in report ad-hoc
Might still be able to use the built in Intl formatter since they have many options:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString
Make copy of date and time helpers into report showing use of options to generate long and short date time, 2digit etc
Perhaps this is a situation served best by either a set of stock helpers like a LONG date helper
or maybe just user custom helpers if they want full control?
Also as an aside there is a relative time formatter available which might be handy
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat
https://momentjs.com/docs/#/-project-status/
TODO: Report confirmation checklist