Skip to content
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

Question about datetime function on your default-template #106

Open
arkadioz opened this issue Oct 24, 2024 · 1 comment
Open

Question about datetime function on your default-template #106

arkadioz opened this issue Oct 24, 2024 · 1 comment

Comments

@arkadioz
Copy link

arkadioz commented Oct 24, 2024

Hi @momocow, I was searching where did you define this function that you are using on your default-template.hbs:

{{datetime "UTC:yyyy-mm-dd"}}

I am also using it but I do not understand where does it come from? Is it something already included on node/javascript?

Also is it possible to configure a different timezone format? Simple as just doing {{datetime "UTC-3:yyyy-mm-dd"}} ??

@momocow
Copy link
Owner

momocow commented Dec 23, 2024

I am also using it but I do not understand where does it come from?

It's a customized function. See

datetime: function (format = 'UTC:yyyy-mm-dd') {

Simple as just doing {{datetime "UTC-3:yyyy-mm-dd"}} ??

You're definitely right!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants