Skip to content

Local time information is wrongly displayed #244

Description

@moyamartin

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

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions