itsarjunsinh / elder_launcher

A Launcher focused on simplicity and legibility.
MIT License
41 stars 20 forks source link

Wrong Time #3

Open itsarjunsinh opened 3 years ago

itsarjunsinh commented 3 years ago

A collection of reports about wrong time on the homescreen from users.

itsarjunsinh commented 3 years ago

July 7, 2020

App version: 1.0 Android version: 6.0 Device: ZTE K90 4G Automatic date & time: Yes Automatic timezone: Yes Fixed by Restart: No

App time: 3:57 AM, System time: 7:57 PM
itsarjunsinh commented 3 years ago

October 6, 2020

App version: Unknown Android version: Unknown Device: Unknown Devices tested: 2 Automatic date & time: Unknown Automatic timezone: Unknown Fixed by Restart: No

"The hours display is the same as the Android hours display above it but the minutes are stuck at 10 on both phones."

itsarjunsinh commented 3 years ago

October 11, 2020

App version: Probably 1.1.1 Android version: 7.1.1, 10 or 11 Device: BQ Aquarius U Plus, Xiaomi Mi 9 Lite Automatic date & time: Unknown Automatic timezone: Unknown Fixed by Restart: No

"There is a problem with time. It only updates once an hour, exactly each hour past ten."

itsarjunsinh commented 3 years ago

Analysis The reports from October 6 and 11 both have the same characteristics. Possible causes: Time being fetched only once an hour; Time being fetched every second but the minute value being stuck.

I can't reproduce any of these bugs on my own device.

xscotophilic commented 1 year ago

@itsarjunsinh have you tried displaying time with seconds and checking after sometime?

itsarjunsinh commented 1 year ago

Hi @xscotophilic, the second point you have raised is something worth looking into. https://github.com/itsarjunsinh/elder_launcher/blob/b7fad939cf488e06f846279fbdfa0be209626393/lib/providers/date_time_provider.dart#L12

The app updates the time every second. So, at first glance it would seem that even if the app might be resumed/brought back, the timer will be update automatically.. unless, Dart/Flutter doesn't automatically update the internal clock. Thanks a lot for the pointer, I really appreciate it.