Skip to content

Discrepancy in the invoice start date for usage items when the account is in PST time zone #1966

@reshmabidikar

Description

@reshmabidikar

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:

  1. Upload the catalogTest.xml catalog
  2. Set the current date time to 2024-02-01T13:25
  3. Create an account with BCD=31 and timezone=America/Los_Angeles
  4. Create a subscription to the pistol-in-arrear-monthly-notrial plan with billingDate=2024-0201T06:30 and entitlementDate=2024-02-01T06:30
  5. Add the bullets-usage-in-arrear addon with billingDate=2024-0201T06:30 and entitlementDate=2024-02-01T06:30
  6. 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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions