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

Add date filter #42

Merged
merged 4 commits into from
Jun 30, 2016
Merged

Add date filter #42

merged 4 commits into from
Jun 30, 2016

Conversation

kstep
Copy link

@kstep kstep commented Jun 13, 2016

A date filter implementation for #11 from cobalt-org/cobalt.rs#115.


This change is Reviewable

@kstep kstep force-pushed the date-filter branch 2 times, most recently from 333499e to d823bf6 Compare June 13, 2016 10:02
}

let date = match input {
&Value::Str(ref s) => try!(DateTime::parse_from_str(&s, "%d %B %Y %H:%M:%S %z")
Copy link
Contributor

Choose a reason for hiding this comment

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

So the original liquid has a to_date function that I think is a good idea to implement for us as well https://github.com/Shopify/liquid/blob/master/lib/liquid/utils.rb#L63

However, we don't have to do it in this PR. I'll make a follow-up issue.

@johannhof
Copy link
Contributor

Sorry, I just got around looking at this. Looks great apart from the minor comments! You'll also have to do a rebase from master.

Thanks again!

@johannhof
Copy link
Contributor

Oh, I didn't notice the update. Thanks, looks great now! 👍 👍 👍

@johannhof johannhof merged commit 744e31f into cobalt-org:master Jun 30, 2016
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