Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-1995 - Removed offset as we do the timezone handling in the client. #2004

Merged
merged 2 commits into from
Aug 31, 2023

Conversation

biafra23
Copy link
Contributor

Handles #1995

Changes proposed in this pull request:

  • The txdetail calls do not have a timezone offset

@gnosis/mobile-devs

…txdetail calls do not have a timezone offset
@biafra23 biafra23 self-assigned this Aug 31, 2023
): Page<TxListEntry>

@GET("/v1/chains/{chainId}/safes/{address}/transactions/queued")
suspend fun loadTransactionsQueue(
@Path("chainId") chainId: BigInteger,
@Path("address") address: String,
@Query("timezone_offset") timezoneOffset: Int = TimeZone.getDefault().getOffset(Date().time)
@Query("timezone_offset") timezoneOffset: Int = 0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this parameter at all then ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to leave it because it is in the api. And maybe someone wants to use it in the future. I just set the default to 0.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got referenced here from #3327. This change should bring inaccurate grouping of transactions by the date.

Since the client doesn't report the offset to the server, the transaction list can have some transactions appearing in the wrong day, if those transactions made closer to midnight.

@the-real-chrizzo the-real-chrizzo merged commit 1601eb1 into release Aug 31, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Aug 31, 2023
@biafra23 biafra23 deleted the GH-1995/wrong-time-zone-in-tx-list branch September 1, 2023 06:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants