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

Pitfall: nunjucks-date vs nunjucks-date-filter #231

Open
porglezomp opened this issue Nov 7, 2019 · 2 comments
Open

Pitfall: nunjucks-date vs nunjucks-date-filter #231

porglezomp opened this issue Nov 7, 2019 · 2 comments

Comments

@porglezomp
Copy link

I read the documentation on the timezone errors with formatting dates, but nonetheless had trouble getting stuff to format correctly. I've only just now realized that nunjucks-date and nunjucks-date-filter are two separate packages (with identical interfaces it seems) and that only the latter formats things in UTC by default as is needed here. I don't know if this belongs in the documentation because it's about an external package, but I was confused by it for a few days.

@Ryuno-Ki
Copy link
Contributor

Ryuno-Ki commented Nov 7, 2019

XKCD 1883 - Supervillain Plan

I vote for always assuming UTC by default.

@porglezomp
Copy link
Author

Note that eleventy itself is always UTC and pretty clearly documented as such, this is just an issue of other technically unrelated packages.

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