benjypng / logseq-datenlp-plugin

MIT License
74 stars 6 forks source link

auto date dd.mm.yy #23

Closed azzeli0 closed 1 year ago

azzeli0 commented 1 year ago

strange behaviour to detect date in this format dd.mm.yy

Screenshot 2022-10-03 at 21 25 33
benjypng commented 1 year ago

Sorry, I am not sure what your error is.

cleanclothes-pi commented 1 year ago

Hi @hkgnp , I suspect that I run into the same problem. The issue is that datenlp plugin does not respect the "preferred date format" in the Editor setting menu.

My preferred date format of my two graphs are set to: do MMM yyyy and E, dd.MM.yyyy Regardless, when typed @today or @yesterday datenlp-plugin always parsed an output in format for both of them: [[MMM do, yyyy]]

To be sure, this problem does not occur when parsing out deadlines with keyword ^today , etc.

image
benjypng commented 1 year ago

This should be fixed in the latest version. Do update and let me know if the issue still persists.

Do note that in Logseq, E and EEE seem to look the same in the journal pages. However, if you use the plugin with E, it would show E, and if you use EEE, it will show EEE. Hence, suggest to use EEE instead of E so that there will be no conflicts.

cleanclothes-pi commented 1 year ago

I tested and it parsed the dates as expected, and changed same the EEE date format as suggested—also works great. Thank you so much for your work!