Describe the bug
While playing around with the Local Time Information Characteristic (UUID 0x2A0F) I noticed that the timezone is wrongly displayed. For a PST timezone and no daylight saving (which should be UTC-32:0, take into account that it should display -8hs * 4 = 32) it displays UTC+56:0 per the attached screenshot
To Reproduce
To reproduce this behavior, run the peripheral example on an nrf52840 (or similar with BLE capabilities). Connect to the device and set the Local Time Information with value 0xEC00 (which is timezone -32 [0xE0] and daylight time saving to 0).
Once configured, read that parameter and you will read the latter screenshot
Expected behavior
The correct timezone should be displayed, in this case UTC-32. I assume that the value is not correctly parsed and that's why it is shown as +60
Screenshots
Versions (please complete the following information):
- Android version: 16
- Phone model Pixel 8a
- App Version 4.29.1
Additional context
This arised while testing the Local Time Information characteristic from this PR
Describe the bug
While playing around with the Local Time Information Characteristic (UUID 0x2A0F) I noticed that the timezone is wrongly displayed. For a PST timezone and no daylight saving (which should be UTC-32:0, take into account that it should display -8hs * 4 = 32) it displays
UTC+56:0per the attached screenshotTo Reproduce
To reproduce this behavior, run the
peripheralexample on an nrf52840 (or similar with BLE capabilities). Connect to the device and set the Local Time Information with value0xEC00(which is timezone -32 [0xE0] and daylight time saving to 0).Once configured, read that parameter and you will read the latter screenshot
Expected behavior
The correct timezone should be displayed, in this case
UTC-32. I assume that the value is not correctly parsed and that's why it is shown as+60Screenshots
Versions (please complete the following information):
Additional context
This arised while testing the Local Time Information characteristic from this PR