-
-
Notifications
You must be signed in to change notification settings - Fork 888
Closed
Description
When an account is created in PST time zone, the invoice start dates are different for the recurring and usage items although the underlying subscriptions are created at the same date and time. The start date for the recurring invoice item is converted to the PST timezone while the start date for the usage invoice item is in the UTC timezone.
Steps to reproduce:
- Upload the catalogTest.xml catalog
- Set the current date time to
2024-02-01T13:25 - Create an account with
BCD=31andtimezone=America/Los_Angeles - Create a subscription to the
pistol-in-arrear-monthly-notrialplan withbillingDate=2024-0201T06:30andentitlementDate=2024-02-01T06:30 - Add the
bullets-usage-in-arrearaddon withbillingDate=2024-0201T06:30andentitlementDate=2024-02-01T06:30 - Trigger an invoice dry run with
targetDate=2024-02-29. This generates an invoice with the following invoice items:
- Item 1 - startDate=2024-01-31, endDate=2024-02-29, itemType=RECURRING (start date converted to PST time zone as expected)
- Item 2 - startDate=2024-02-01, endDate=2024-02-29, itemType=USAGE (start date is in UTC time zone - this is unexpected)
Metadata
Metadata
Assignees
Labels
No labels