← Back to team overview

touch-packages team mailing list archive

[Bug 1338138] Re: [sdk] Time Picker component does not respect user locale

 

** Changed in: ubuntu-ux
     Assignee: Giorgio Venturi (giorgio-venturi) => Olga Kemmet (olga-kemmet)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1338138

Title:
  [sdk] Time Picker component does not respect user locale

Status in Ubuntu UX bugs:
  Fix Committed
Status in ubuntu-ui-toolkit package in Ubuntu:
  Confirmed

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ux/+bug/1338138/+subscriptions