TimePickerDialog 24h format incorrect in emulator

asked 2016-08-13 07:41:05 +0300

decon gravatar image

updated 2016-08-13 11:38:24 +0300

Hi,

I think I have found a bug in the Silica TImePickerDialog when used in the emulator (SDK 1608). Using the code below it shows "PM" when hourMode is set to DateTime.TwentyFourHours. After changing the value (dragging the dial in the emulator) it changes to 24h format.

Page {
    IconButton {
        icon.source: "image://theme/icon-m-clock"
        onClicked: {
            var dialog = pageStack.push("Sailfish.Silica.TimePickerDialog", {
                hour: 12, minute: 00,
                hourMode: DateTime.TwentyFourHours
            })
            dialog.accepted.connect(function() {
                console.log("hourMode: " + dialog.hourMode)
            })
        }
    }
}
edit retag flag offensive close delete

Comments

check your env values, most likely it's incorrect.

coderus ( 2016-08-13 08:44:02 +0300 )edit

I updated with some more information. I couldn't find any strange env values? Any specific env values you are thinking about? I did a clean install of 64 bit debian testing earlier this week and I haven't change any values since then so if I have some incorrect env value it is likely either debian or Sailfish SDK 1608 which is configured incorrectly from start. This problem was also reproducible on my old install too (32 bit debian with old SDK 1602).

decon ( 2016-08-13 11:34:01 +0300 )edit