Incorrect Expiry Date Calculation for 10-Year Lifetime Access #88

Closed
opened 2026-11-05 09:23:44 +00:00 by sanskar · 1 comment
Member

When a user purchases a module with 1-year access, the expiry date is correctly calculated as 365 days. However, for 10-year lifetime access, the system does not correctly account for leap years. For example, if a user purchases a module on 5 November 2026, the expiry date should be 5 November 2036, but the system displays 2 November 2036. The expiry date should be calculated correctly by accounting for leap days.
please correct

When a user purchases a module with 1-year access, the expiry date is correctly calculated as 365 days. However, for 10-year lifetime access, the system does not correctly account for leap years. For example, if a user purchases a module on 5 November 2026, the expiry date should be 5 November 2036, but the system displays 2 November 2036. The expiry date should be calculated correctly by accounting for leap days. please correct
Owner

Our calculation purpose we could say that 1 year = 365 days. One thing we could do here is specify 10-year(3650 days) lifetime access.

Our calculation purpose we could say that 1 year = 365 days. One thing we could do here is specify 10-year(3650 days) lifetime access.
amit added the
Reviewed
Won't Fix
label 2026-11-07 04:58:50 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: AcuPedia/acupedia-store-ui#88
No description provided.