notesnook icon indicating copy to clipboard operation
notesnook copied to clipboard

/date generate wrong month for date

Open streetwriters[bot] opened this issue 1 year ago • 5 comments

/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

streetwriters[bot] avatar Aug 19 '22 19:08 streetwriters[bot]

Not only is the month wrong but displaying as 8 rather than 09, today's correct month encoding, is not desirable.

image

Be nice to make all these dates the same: yyyy-mm-dd, for example.

permezel avatar Sep 10 '22 23:09 permezel

Hi, we are fixing this.

ammarahm-ed avatar Sep 11 '22 02:09 ammarahm-ed

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.

image

permezel avatar Sep 11 '22 09:09 permezel

Cannot use the /date for title.

image

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.

permezel avatar Sep 11 '22 09:09 permezel

Best option would be full support for the format string from the date command.

https://man7.org/linux/man-pages/man1/date.1.html

permezel avatar Sep 11 '22 09:09 permezel