[
https://issues.apache.org/jira/browse/FINERACT-2518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Edward Kang reassigned FINERACT-2518:
-------------------------------------
Assignee: Edward Kang
> Fix to Savings account tests date timezone
> ------------------------------------------
>
> Key: FINERACT-2518
> URL: https://issues.apache.org/jira/browse/FINERACT-2518
> Project: Apache Fineract
> Issue Type: Bug
> Reporter: Edward Kang
> Assignee: Edward Kang
> Priority: Minor
> Attachments: Screenshot 2026-03-02 at 6.53.46 PM-1.png, Screenshot
> 2026-03-02 at 6.53.46 PM.png
>
>
> *Problem*
> After investigating, it turns out PRs have been failing due to a mismatch
> between the CI/CD date locality (Asia/Kolkata) and date locality used in
> SavingsAccountsExternalIdTests (UTC). At certain times of the day, we get a
> date mismatch, which corresponds to the errors we have been getting.
> The time of the CI/CD commit failures was around 1-2pm. Notably, this is 12am
> in Asia/Kolkata, resulting in a future date.
> Failed CI/CD tests are similar between commits. We get failed data validation
> due to: ...cannot.be.before.client.activation.date. Below is a picture of the
> errors we get from CI/CD.
> !Screenshot 2026-03-02 at 6.53.46 PM.png!
> *Fix*
> Proposition is to change the hardcoded UTC to getLocalDateOfTenant() which is
> also hardcoded to Asia/Kolkata. This is also better than using system date,
> which could depend on the location of the user if testing locally.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)