espruino / espruino/BangleApps
[iOS] Request time from CTS service changing locale time zone.
- Dominant language
- JavaScript
- Stars
- 571
- Forks
- 1.3k
- Avg merge
- 17h 38m
- Merged PRs (30d)
- 17
Description
### Affected hardware version
Bangle 2
### Your firmware version
2v29
### The bug
I've been having this bug for a while now, but just put the iOS setting together with my random time zone changes in my mind. When the "set time from device" setting is enabled, the time zone randomly changes at odd intervals. I haven't been able to track down exactly when it changes, as like I said before, it changes randomly, but when I set the time to a completely random time after a reboot, the CTS bluetooth service was able to set the watch time back correctly after a long enough period of time (which I'm also not sure why, as it should also be an instantaneous time change back).
I'm not well versed in how CTS (current time service) works, so I'm not sure if this is something on my end, or even a problem with CTS at all, but I wanted to see if this was happening to anyone else, and if anyone knew why.
Specifics:
The time zone randomly changes from -4 (my current time zone) to -5, setting it an hour back. When I disconnect the phone, set the time randomly, and reconnect, after a while it sets the time correctly.
### Installed apps
_No response_
### Author
@gfwilliams
Contributor guide
Research direction
Start by reproducing the issue with the iOS “set time from device” setting enabled, observing the time-zone change from -4 to -5 and the delayed correction after reconnecting. Trace the JavaScript handling of the CTS service and determine whether the reported behavior can be reproduced consistently; done means identifying and correcting the cause with a verified time-zone and time update.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, javascript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100