notesnook
notesnook copied to clipboard
/date generate wrong month for date
/date
command generates a date of 2022-7-19
which is wrong given that at the time of this writing the date is 2022-08-19
.
Device information: App version: 2.1.6-deb04d6-desktop OS: OS X 10.15.7 Browser: Electron 19.0.8 Pro: true
Not only is the month wrong but displaying as 8 rather than 09, today's correct month encoding, is not desirable.
Be nice to make all these dates the same: yyyy-mm-dd, for example.
Hi, we are fixing this.
I see your fix. Just adding one to the month will not result in correct format, will it? Needs to be '09' not '9'.
Also, all other dates displayed are not calling that function. See all the other dates. Mismash of differing formats.
Cannot use the /date for title.
That is where I really want it. Better yet, have a template string as default title, sufficiently expressive so i can customise the date. I might want yyyy-mm-dd or yyyy/mm/dd with or without time.
Best option would be full support for the format string from the date command.
https://man7.org/linux/man-pages/man1/date.1.html