Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Fix timeformat. API expects exposureWindow timestamp to be in seconds. (EXPOSUREAPP-5529) #2518

Merged
merged 2 commits into from
Mar 4, 2021

Conversation

d4rken
Copy link
Member

@d4rken d4rken commented Mar 4, 2021

Milliseconds to seconds + a unit test.

@d4rken d4rken added bug Something isn't working maintainers Tag pull requests created by maintainers prio PRs to review first. labels Mar 4, 2021
@d4rken d4rken added this to the 1.14.x milestone Mar 4, 2021
@d4rken d4rken requested a review from a team March 4, 2021 08:27
@d4rken d4rken modified the milestones: 1.14.x, 1.14.0 Mar 4, 2021
@@ -76,7 +76,7 @@ internal fun List<AnalyticsExposureWindowEntityWrapper>.asPpaData() = map {
}

val exposureWindow = PpaData.PPAExposureWindow.newBuilder()
.setDate(it.exposureWindowEntity.dateMillis)
.setDate(it.exposureWindowEntity.dateMillis / 1000)
Copy link
Contributor

Choose a reason for hiding this comment

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

very minor: didn't we have an extension function for this?

@ralfgehrer ralfgehrer self-assigned this Mar 4, 2021
@sonarcloud
Copy link

sonarcloud bot commented Mar 4, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@ralfgehrer ralfgehrer merged commit 87a3946 into release/1.14.x Mar 4, 2021
@ralfgehrer ralfgehrer deleted the fix/5529-ppa-time-format branch March 4, 2021 09:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working maintainers Tag pull requests created by maintainers prio PRs to review first.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants