fix offset reference#954
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates writeSleepSessionWithStage and writeSleepSessionWithoutStage in HealthConnectManager.kt to dynamically calculate and use the system's local zone offset instead of hardcoding UTC. However, the reviewer pointed out that in both functions, the constructed SleepSessionRecord is never actually written to the healthConnectClient or returned, making the operations ineffective. To resolve this, the functions should be marked as suspend and the records should be saved using healthConnectClient.insertRecords().
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Update zoneOffset reference