[sdk] Time Picker component does not respect user locale

Bug #1338138 reported by Nekhelesh Ramananthan
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Ubuntu UX
Fix Committed
Medium
Pierre Bertet
ubuntu-ui-toolkit (Ubuntu)
Confirmed
Medium
Cris Dywan

Bug Description

In the new clock app we are using the Date Picker component to allow the user to choose a time. Hence the mode used was "Hours|Minutes". However the Date Picker seems to always display the time in 24 hour instead of using the user's locale. So whereever 12-hour time format is required, the time picker ignores that.

The code below shows the usage in the clock app.

DatePicker {
            id: _timePicker

            anchors {
                left: parent.left
                right: parent.right
                margins: units.gu(-2)
            }

            clip: true
            mode: "Hours|Minutes"
        }

-- Design solution --
https://docs.google.com/a/canonical.com/document/d/1nFm8xiYhKXXuEO_IvMXoD0lASbYzYXva1BWMVanU3iw/edit#heading=h.tuxva2dtgvpk

Tags: clock-app
Revision history for this message
Charles Kerr (charlesk) wrote :

This is very annoying in a 12h locale.

Changed in ubuntu-ui-toolkit:
status: New → Confirmed
Revision history for this message
Zsombor Egri (zsombi) wrote :

We do not have design to show 12h format... yet :)

summary: - Time Picker component does not respect user locale
+ [sdk] Time Picker component does not respect user locale
Changed in ubuntu-ux:
assignee: nobody → Giorgio Venturi (giorgio-venturi)
status: New → Triaged
Revision history for this message
Giorgio Venturi (giorgio-venturi-deactivatedaccount) wrote :

Design solution has been already discussed and validated as part of the UI components workstream.

description: updated
Changed in ubuntu-ux:
status: Triaged → Fix Committed
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Confirmed
tags: added: clock-app
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Zsombor Egri (zsombi)
Zoltan Balogh (bzoltan)
no longer affects: ubuntu-ui-toolkit (Ubuntu)
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Confirmed
Zoltan Balogh (bzoltan)
no longer affects: ubuntu-ui-toolkit
Changed in ubuntu-ux:
importance: Undecided → Medium
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit (Ubuntu):
importance: Undecided → Medium
assignee: nobody → Zsombor Egri (zsombi)
Changed in ubuntu-ux:
assignee: Giorgio Venturi (giorgio-venturi) → Olga Kemmet (olga-kemmet)
Changed in ubuntu-ux:
assignee: Olga Kemmet (olga-kemmet) → Pierre Bertet (bpierre)
Cris Dywan (kalikiana)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: Zsombor Egri (zsombi) → Christian Dywan (kalikiana)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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