Fix tests by setting UTC timezone for CommCare date formatting to ensure consistent timestamp parsing - #1781
Open
meladRaouf wants to merge 1 commit into
Open
Fix tests by setting UTC timezone for CommCare date formatting to ensure consistent timestamp parsing#1781meladRaouf wants to merge 1 commit into
meladRaouf wants to merge 1 commit into
Conversation
…ure consistent timestamp parsing
meladRaouf
requested review from
BurningAXE,
alex-vt,
alexandr-simprints and
luhmirin-s
August 12, 2026 08:48
|
BurningAXE
reviewed
Aug 12, 2026
| // the machine's default timezone (e.g. "Europe/London" prints "GMT" for its short zone name even | ||
| // during BST, which reparsed as literal GMT/UTC+0 would silently shift timestamps by an hour). | ||
| private val commCareDateFormat = SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy", Locale.US).apply { | ||
| timeZone = TimeZone.getTimeZone("UTC") |
Contributor
There was a problem hiding this comment.
Why was this not needed before?
Contributor
There was a problem hiding this comment.
It seems to be fine in my local runs.
Collaborator
Author
Collaborator
Author
There was a problem hiding this comment.
Verification failed: call 1 of 1: ContentResolver(mockContentResolver#15).query(eq(Uri(#3)), any(), any(), any(), any())) should not be called
Calls:
- ContentResolver(mockContentResolver#15).query(Uri(#1), null, null, null, null)
- ContentResolver(mockContentResolver#15).query(Uri(#1), [case_id, last_modified], null, null, null)
- ContentResolver(mockContentResolver#15).query(Uri(#3), null, null, null, null)
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.





No description provided.