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
When I do a ticket I get the date and hour in my timezone. When I reprint that order is in american format and in UTC.
When ticket is printed firs time, odoo computes a field called formatted_validation_date with new Date(), whitch includes timezone.
When reprint, we get order_data.date_order un UTC, so when in the module you do:
// Get Dateif(["print"].indexOf(action)!==-1){order.formatted_validation_date=moment(order_data.date_order).format("YYYY-MM-DD HH:mm:ss");
The date does not respect original format, in my case dd/MM/YYYY, and is not converted from UTC to user timezone.
When the module calls the server, doing self.date_order I get UTC date, so in javascript is in UTC too. It should be converted to get the same date and same format than original receipt
The text was updated successfully, but these errors were encountered:
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.
pos_order_mgmt
When I do a ticket I get the date and hour in my timezone. When I reprint that order is in american format and in UTC.
When ticket is printed firs time, odoo computes a field called formatted_validation_date with new Date(), whitch includes timezone.
When reprint, we get order_data.date_order un UTC, so when in the module you do:
The date does not respect original format, in my case dd/MM/YYYY, and is not converted from UTC to user timezone.
Somethgn like this solves tge issue I think:
When the module calls the server, doing self.date_order I get UTC date, so in javascript is in UTC too. It should be converted to get the same date and same format than original receipt
The text was updated successfully, but these errors were encountered: