FINERACT-2518: Fix to Savings account tests date timezone#5574
Open
edk12564 wants to merge 1 commit intoapache:developfrom
Open
FINERACT-2518: Fix to Savings account tests date timezone#5574edk12564 wants to merge 1 commit intoapache:developfrom
edk12564 wants to merge 1 commit intoapache:developfrom
Conversation
- changed the hardcoded UTC to getLocalDateOfTenant() which is also hardcoded to Asia/Kolkata - this matches the region CI/CD runs in
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
JIRA: FINERACT-2518
Problem
After investigating, it turns out PRs have been failing due to a mismatch between the CI/CD date locality (Asia/Kolkata), which is the default tenant timezone, 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 US Central. Notably, this is after 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. We can also see that in submitSavingsAccountApplication(), we use a date of 2026-03-03, but the submittedOnDate we pass in is 02 March 2026. Subsequent errors seem to be cascaded from this one, since these Savings tests rely on submitSavingsAccountApplication() due to their @order.
Below is a picture showing these errors from github.
Changes
Changed the hardcoded UTC to getLocalDateOfTenant() which defaults to Asia/Kolkata. This matches the default tenant timezone used in CI/CD.
Results
Tests pass with changes:

Might need further testing during the mismatch window (eg. 1pm US Central).
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
Your assigned reviewer(s) will follow our guidelines for code reviews.