Open
Description
The “now” keyword, when passed to the date
filter in Shopify Liquid calls out to Ruby's Time.now
, which returns the current time, in the current system time zone:
$ irb
irb(main):001:0> Time.now
=> 2019-02-08 15:34:25 -0800
liquid-rust’s implementation uses the current time in UTC, which makes templates relying on the upstream Liquid behaviour behave incorrectly!
For instance, my site uses {{ 'now' | date: "%b %-d, %I:%M %P %Z" }}
to print the compilation time in the footer of pages, and it is my intent that this shows in the local time zone of the machine that generated it, however, this now emits the date in UTC, which is less desirable to me.
liquid-rust version: master
rust version: 1.32.0
OS: macOS 10.14