Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Revisions: Issue #45699 Back to Issue ]
Summary 0045699: There's an issue with the timezones when reprinting invoices
Revision 2021-01-11 15:48 by guillermogil
Steps To Reproduce Video: https://drive.google.com/file/d/1yjz6sMaZxNnPfrhaX84vi2UE1xNt1-Wk/view [^]

As Livebuilds is in UTC, put your laptop in UTC-1.
If you put it in UTC-X you will see that the returned our is 2020-01-07 00:00:00 -X hours

- Put your laptop at least in UTC-1
- Login on livebuilds (the test we've done is on 19Q3)
- Create an invoice
    Add a product
    Put a nominal customer
    Menu -> Invoice this receipt
    Pay
- Load the previously created ticket
- Menu -> Print this Receipt

You will notice the date shown in the popup is wrong

If you close the popup, open the developers tools, go to network tab and open the popup again you will see the request to InvoiceHeader that comes with the timezone.

Bear in mind that the printed date on the Invoice Receipt is wrong too.

Revision 2021-01-08 07:16 by guillermogil
Steps To Reproduce Video: https://drive.google.com/file/d/1yjz6sMaZxNnPfrhaX84vi2UE1xNt1-Wk/view [^]

As Livebuilds is in UTC, put your laptop in UTC-1.
If you put it in UTC-X you will see that the returned our is 2020-01-07 00:00:00 -X hours

- Put your laptop at least in UTC-1
- Login on livebuilds (the test we've done is on 19Q3)
- Create an invoice
    Add a product
    Put a nominal customer
    Menu -> Invoice this receipt
    Pay
- Load the previously created ticket
- Menu -> Print this Receipt

You will notice the date shown in the popup is wrong

If you close the popup, open the developers tools, go to network tab and open the popup again you will see the request to InvoiceHeader that comes with the timezone.



Revision 2021-01-08 07:16 by guillermogil
Description There's an issue with the timezones when reprinting invoices. The reprinted date is always the day before (one hour less 23:00:00)

The request done to the InvoicesHeader comes with the timezone of the server therefore it returns: 2020-01-07 00:00:00 +0000
It you are on a timezone (e.g.- gmt-1) the conversed date in the frot-end is 2020-01-06 23:00:00 -0100
Revision 2021-01-07 23:53 by guillermogil
Steps To Reproduce Video: https://drive.google.com/file/d/1yjz6sMaZxNnPfrhaX84vi2UE1xNt1-Wk/view [^]

As Livebuilds is in UTC, put your laptop in UTC-1
Revision 2021-01-07 18:25 by guillermogil
Description There's an issue with the timezones when reprinting invoices. The reprinted date is always the day before (one hour less 23:00:00)

The request done to the InvoicesHeader comes with the timezone of the server therefor it returns: 2020-01-07 00:00:00 +0000
It you are on a timezone (e.g.- gmt-1) the conversed date in the from end is 2020-01-06 23:00:00 -0100
Revision 2021-01-07 18:19 by guillermogil
Description There's an issue with the timezones when reprinting invoices. The reprinted date is always the day before (one hour less 23:00:00)


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker