Clock app does not honor timezone

Bug #1191291 reported by Jamie Strandboge
26
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Ubuntu Clock App
Fix Released
High
Nekhelesh Ramananthan
touch-preview-images
Invalid
Undecided
Unassigned

Bug Description

After flashing my nexus 4 yesterday and setting the timezone using:
root@ubuntu-phablet:/# echo "America/Chicago" | sudo tee /etc/timezone
root@ubuntu-phablet:/# dpkg-reconfigure --frontend noninteractive tzdata

If I launch the clock app, it is not honoring the timezone setting.

Related branches

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

Hmm, that's is really weird. The clock app gets the system by, new Date(). So if you change the timezone of the system, it should technically also change the time in the clock app. I will have to find more about this.

Changed in ubuntu-clock-app:
status: New → Confirmed
milestone: none → coreapps-13.10-month-4
importance: Undecided → High
summary: - ubuntu-clock-app does not honor timezone
+ Clock app does not honor timezone
Revision history for this message
Riccardo Padovani (rpadovani) wrote :

@nik90: yes, the clock app uses Date(), but there are some lines of code like now.setMinutes(now.getMinutes() + diff), where diff is new Date().getTimezoneOffset().

This is useful for other timezone, but it has been included also for local clock. I'm patching it.

Changed in ubuntu-clock-app:
assignee: nobody → Riccardo Padovani (rpadovani)
status: Confirmed → In Progress
Revision history for this message
David Planella (dpm) wrote :

Nekhelesh, on the merge proposal you're mentioning that this is pending a design decision. What's the current status on that decision?

Changed in ubuntu-clock-app:
milestone: coreapps-13.10-month-4 → hack-days-13-09
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

The design decision has been made which has been detailed at https://docs.google.com/document/d/10f7sU1POjFWc1y1afiV3IynJxDQartyFsXcpexI--7w/edit. The current fix proposed will *not* fix the issue. That said, the fix for this bug is not simple. It will involve reading the /etc/timezone file which in turn requires a c++ qml plugin. I have already coded the plugin but not sure how to integrate it into the clock app since click packages do not support additional c++ qml plugins. On talking to michael hall, he asked me to prioritise the alarm page first. So until then this is on the backburner unless someone can pick it up.

Changed in ubuntu-clock-app:
assignee: Riccardo Padovani (rpadovani) → nobody
status: In Progress → Confirmed
Changed in ubuntu-clock-app:
assignee: nobody → Nekhelesh Ramananthan (nik90)
Changed in ubuntu-clock-app:
status: Confirmed → In Progress
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-clock-app at revision 205, scheduled for release in ubuntu-clock-app, milestone final-1.0

Changed in ubuntu-clock-app:
status: In Progress → Fix Committed
Changed in ubuntu-clock-app:
status: Fix Committed → Fix Released
Changed in touch-preview-images:
status: New → Invalid
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.