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

docs: Update dates.md with an actual inline fix for Liquid #1745

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jeremenichelli
Copy link
Contributor

Hi folks. While working with dates and dealing with UTC, I noticed that there was an easy inline fix in Liquid not mentioned in the documentation page. I think is quite simpler than having to build a whole filter pipeline.

This is extracted from LiquidJS official docs: https://liquidjs.com/filters/date.html

Let me know if you agree with me this is a valid extra bit of advice.

Copy link
Member

@Snapstromegon Snapstromegon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing, just one suggestion.

@@ -120,7 +120,15 @@ display a date with a UTC time zone like:
Mon, 01 Jan 2018 00:00:00 GMT
```

You could add your own `toUTCString` [filter in Liquid](/docs/filters/) to perform the same task.
On Liquid, you can't do this, though you can create your own `toUTCString` [filter in Liquid](/docs/filters/) to perform the same task, or pass a timezone parameter to your filter to point to the one you desire in your template.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
On Liquid, you can't do this, though you can create your own `toUTCString` [filter in Liquid](/docs/filters/) to perform the same task, or pass a timezone parameter to your filter to point to the one you desire in your template.
On Liquid, you can't do this, though you can create your own `toUTCString` [filter in Liquid](/docs/languages/liquid/#filters) to perform the same task, or pass a timezone parameter to your filter to point to the one you desire in your template.

I think this specific link is closer to the link text.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, I just kept the original one from the team as I didn't touch that part specifically. Mostly edit it so it made sense to the follow up advice.

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

Successfully merging this pull request may close these issues.

2 participants