New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
datetime renders as [object Object] #2
Comments
I think we need something like https://github.com/e-picas/nunjucks-date-filter |
It will print The builtin datetime provider is very dumb though.. So it might not be what you want. Contributions are welcome! |
I looked at https://github.com/e-picas/nunjucks-date-filter before, but seems like it's unmaintained for years... I couldn't find a good alternative for now. |
https://www.npmjs.com/package/nunjucks-date-filter-locale seems to be what i'm looking for
Ok, i'll setup proper dev env next week and try to add this filter |
I'll take a look at this too when I have time. We probably need to allow user to configure |
Date formatting is now supported! See https://github.com/garyng/obsidian-temple#formatting-with-dateformat-filter |
How to reproduce
{{ datetime }}
to emplateEcpected result
{{ datetime }}
renders asYYYY-MM-DD
by default (or any other format).I think date format should be configurable
The text was updated successfully, but these errors were encountered: