bkiers / Liqp

An ANTLR based 'Liquid Template' parser and rendering engine.
MIT License
165 stars 94 forks source link

Parsing Datetime to date-month works fine but not with only Date #240

Closed jkhanna23 closed 1 year ago

jkhanna23 commented 1 year ago

Hi, I'm having an issue while parsing the following input in Template to render.

{{ "2022-10-13 12:06:04" | date: "%m-%e" }} → gives parsing outcome as → "10-13" // correct output

{{ "2022-10-13" | date: "%m-%e" }} → gives parsing outcome as → "2022-10-13" //incorrect output

Is there any method or filter for this issue so it works with only date input as well? @bkiers @msangel

bkiers commented 1 year ago

Thanks for the report @jkhanna23, I've created a fix for it. I'll leave the merge to @msangel since I am not using Liqp actively myself.

jkhanna23 commented 1 year ago

Hi @bkiers @msangel, Thanks for the quick resolution.

When will you be releasing a new version so I can use the changes made above, as I'm currently using the v 0.7.5 for liqp?

bdale-upland commented 1 year ago

I have the same question as jkhanna23 above - any ETA on the next release with this fix in it? Thanks!

msangel commented 1 year ago

This has been merged into master and released on sonatype. Usually, it took a few hours to sync sonatype with maven central. The version will be 0.8.3.3.