Monday, April 28, 2025
1 change · saas-18.2
Resolved issues and error corrections
Self-order pickup or takeout times now appear at the time selected by the customer instead of being shifted by the local time zone. This prevents staff from seeing incorrect preparation or collection times in the Point of Sale order view.
Original PR description
Steps to reproduce ------------------ 1. Enable self order, and enable presets 2. In self order interface, choose the preset "takeout" that will by default be configured to use time slots. 3. When paying the order, select a time, say 12:00 Observation ----------- In the PoS session interface, go to orders, and observe that this order shows the time as 14:00 (or whatever your tz diff is + 12:00). Reason ------ When assigning a datetime to `preset_time`, we assign it as a local datetime, when it waits to be assigned a UTC datetime. So for instance, if we assign "2025-04-25 12:00:00" to it, it will be interpreted as UTC date an hence in the PoS orders UI, we see it converted to local date and hence a mismatch. Fix --- Convert the formatted date string into UTC before assigning it to `preset_time`. opw-4728248