Automatically update time does not work if time is manually set ahead of the real time

Bug #1459643 reported by Sam Bull
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-system-settings (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Upon another crash which caused my phone to set the time back to 1970, I selected the update automatically option and nothing happened, the time remained in 1970. I then set the time manually, but deliberately set it several minutes ahead before setting it back to automatically, so I could test if it would set the time later on. After several weeks, the time is still several minutes ahead, so clearly hasn't been updated.

Seems this works correctly when the time is behind the current time, but fails to do anything when the time is ahead.

To reproduce:
 - Set time manually a few minutes behind.
 - Select automatic time and observe that the time is corrected.
 - Set time manually a few minutes ahead.
 - Select automatic time and observe that the time is not corrected.

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

Sounds like bug #1390120

What version are you running? Next update should address this

Revision history for this message
Sebastien Bacher (seb128) wrote :

What device and OS channel are you using?

Changed in ubuntu-system-settings (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Sam Bull (dreamsorcerer) wrote :

Mako, r19, current stable release. I noticed the behaviour of the other bug also, and thought it might be related. So, I'll update the bug after the next update, to confirm if that has fixed the problem or not.

Revision history for this message
Sam Bull (dreamsorcerer) wrote :

So, the "duplicate" bug has been fixed, so if I set it to manual, the setting persists. Regardless, the phone still does not sync the time at any point, as per this bug description. My time is still several minutes fast and hasn't been updated. Since the OTA-4 upgrade, I have rebooted the phone a couple of times and left it running for a couple of days, switched the setting between manual and automatic, nothing has caused it to sync.

Changed in ubuntu-system-settings (Ubuntu):
status: Incomplete → New
Revision history for this message
Sebastien Bacher (seb128) wrote :

sync is supposed to happen when connecting to e.g a wifi when the setting is set to automatic. did you do that?

Changed in ubuntu-system-settings (Ubuntu):
status: New → Incomplete
Revision history for this message
Sam Bull (dreamsorcerer) wrote :

I don't use WiFi most of the time. Updating the description.

summary: - Automatically update time does not work
+ Automatically update time does not work on mobile network
Revision history for this message
Sebastien Bacher (seb128) wrote : Re: Automatically update time does not work on mobile network

does it work/update if/when you connect to a wifi then?

Revision history for this message
Sam Bull (dreamsorcerer) wrote :

Tried it this morning, and it does. But, because I use WiFi so infrequently, I have gone months thinking that this was not working at all.

description: updated
Changed in ubuntu-system-settings (Ubuntu):
status: Incomplete → New
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

This worked for me on the current rc-proposed image
Disable wifi
Manually set time
Set back to automatic
Time was reset within 10 secs

Changed in ubuntu-system-settings (Ubuntu):
status: New → Incomplete
Revision history for this message
Sam Bull (dreamsorcerer) wrote :

It doesn't do that for me on stable. So, maybe changed recently? Will be in OTA-5 perhaps?

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

An important detail:

An automatic update always fail if the current system time is *ahead* of the actual time by more 18h, otherwise, automatic update works. This is by design.

But several mins is working here, although I dont see a relevant change

Revision history for this message
Sam Bull (dreamsorcerer) wrote :

Nope, updated to OTA-5, still not working. Time is 5-6 mins ahead, and won't update automatically on a mobile network, even after switching the setting to manual and back again.

Changed in ubuntu-system-settings (Ubuntu):
status: Incomplete → New
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

I was able to get the phone in a state where the time did not update because the phone was in an inconsistent state with regard to cellular data status. The indicator did not show a data connection but the pulldown did. Whenever the network indicator shows the data connection, the time was properly set on automatic.

This seems related to bug #1470900

Revision history for this message
Sam Bull (dreamsorcerer) wrote :

I played with it some more, and am not seeing it working at all. I have mobile data enable all the time, and WiFi disabled all the time.

This is on a Nexus 4 (mako) if that makes any difference.

Revision history for this message
Sam Bull (dreamsorcerer) wrote :

OK, a little more experimenting. Setting the time behind a few minutes works as expected. Setting the time ahead a few minutes will not update the time automatically.

description: updated
summary: - Automatically update time does not work on mobile network
+ Automatically update time does not work if time is manually set ahead of
+ the real time
Revision history for this message
TarotChen (tarotchen) wrote :
Revision history for this message
TarotChen (tarotchen) wrote :

Automatically update doesn't work if time is manually set more than 18hrs ahead of the real time.

Revision history for this message
Sam Bull (dreamsorcerer) wrote :

This bug was reproducible when only set a few minutes ahead. I've just retested (on OTA-7), and it is now working as expected. I think the >18 hours was mentioned before as a deliberate design. So, this bug is fixed; if you disagree with the >18 hours thing, that should be reported in a new bug.

Changed in ubuntu-system-settings (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.