You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, would it be possible to take into account Craft's timezone setting when fetching data for the various widgets?
I recently took the plunge and built a custom widget that reported on different order types (specific to a particular CC site). I found that all dates are stored in UTC time, so to get the correct output for my timezone (Pacific/Auckland), I needed to do something similar to a fix implemented in CC earlier in the year: craftcms/commerce@b36ad11.
Just for reference, this is what I'm currently seeing with the goal widget vs. Craft Commerce:
... and this is from my custom widget:
If I get time I might have a crack and raise a PR, but can't promise anything!
The text was updated successfully, but these errors were encountered:
Hi there, would it be possible to take into account Craft's timezone setting when fetching data for the various widgets?
I recently took the plunge and built a custom widget that reported on different order types (specific to a particular CC site). I found that all dates are stored in UTC time, so to get the correct output for my timezone (Pacific/Auckland), I needed to do something similar to a fix implemented in CC earlier in the year: craftcms/commerce@b36ad11.
Just for reference, this is what I'm currently seeing with the goal widget vs. Craft Commerce:
... and this is from my custom widget:
If I get time I might have a crack and raise a PR, but can't promise anything!
The text was updated successfully, but these errors were encountered: