Add timezone offset information to function input query #567
AllHearsMe
started this conversation in
Feedback: Cart and Checkout Validation API
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There's some discussion in #416 that I wanted to bring up as a separate post (original message by @hasvtar).
I have a similar use case to what @manglestealth describes here, where I'm okay with using multiple
time0:timeAfter(time:"00:00:00")
fields in the query. I'm planning to set rules based on product metafields containing the start and end dates for the sales period, and it seemed sensible for me to make the metafields the date & time type.The issue comes from date & time metafields seemingly always being returned in UTC. I was hoping to solve this by using the timezone offset to convert it to local time, but I'm not finding any good way to obtain the store's timezone information.
Considering the timezone offset is available on the Admin API (shop.timezoneOffsetMinutes), is there any chance that this information can be exposed here as well?
Beta Was this translation helpful? Give feedback.
All reactions