Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

Adjust reason byte #2

Open
Open

Description

@hammmmy

In the code, Intent.ACTION_TIME_CHANGED results in TimeProfile.ADJUST_MANUAL (0x01) but for Intent.ACTION_TIMEZONE_CHANGED the adjust reason value is set as 0x04.
According to the current time specs (https://www.bluetooth.com/specifications/adopted-specifications), "If the time information on the server device was set / changed manually, the “Manual Time Update” bit shall be set.
Note: If the time zone or DST offset were changed manually, this bit shall also be set."

In the example scenario, the user is asked to changed the timezone. Shouldn't the ADJUST_TIMEZONE value be 0x05 instead of 0x04 (and shouldn't the same thing apply to DST)?

    // Adjustment Flags
    public static final byte ADJUST_NONE     = 0x0;
    public static final byte ADJUST_MANUAL   = 0x1;
    public static final byte ADJUST_EXTERNAL = 0x2;
    public static final byte ADJUST_TIMEZONE = 0x5;
    public static final byte ADJUST_DST      = 0x9;

Activity

  1. changed the title [-]Manual update in Adjust_reason[/-] [+]Adjust reason byte[/+] on Apr 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions