-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fix breathing and skin temperature convertors #121
Conversation
.map(tryOrNull(m -> parseBr(m, startDate, timeReceived), | ||
(a, ex) -> logger.warn("Failed to convert breathing rate from request {}, {}", request, a, ex))); | ||
} | ||
|
||
private TopicData parseBr(JsonNode data, ZonedDateTime startDate, double timeReceived) { | ||
Instant time = startDate.with(LocalDateTime.parse(data.get("dateTime").asText())).toInstant(); | ||
Instant time = LocalDate.parse(data.get("dateTime").asText()).atStartOfDay(ZoneOffset.UTC).toInstant(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this have to be at start of day?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dateTime is in YYYY-MM-DD
format and atStartOfDay
get the 12.00 am timestamp.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh ok I see, I didn't realise it didn't have the time and only the date.
@@ -22,7 +22,7 @@ object Versions { | |||
const val okhttp = "4.11.0" | |||
|
|||
const val firebaseAdmin = "9.1.0" | |||
const val radarSchemas = "0.8.7-SNAPSHOT" | |||
const val radarSchemas = "0.8.6" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we update this to the latest one? 0.8.7-hotfix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0.8.7-hotfix
doesn't work for me. I revert it to the working version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
No description provided.