Closed Bug 1064898 Opened 10 years ago Closed 10 years ago

Time picker is not displaying AM/PM for 12 hours format

Categories

(Firefox OS Graveyard :: Gaia::System::Input Mgmt, defect)

defect
Not set
normal

Tracking

(blocking-b2g:2.1+, b2g-v2.1 verified, b2g-v2.2 verified)

VERIFIED FIXED
2.1 S5 (26sep)
blocking-b2g 2.1+
Tracking Status
b2g-v2.1 --- verified
b2g-v2.2 --- verified

People

(Reporter: flod, Assigned: gasolin)

References

Details

(Whiteboard: [p=2])

Attachments

(1 file)

Both from Settings or FTU: either pick a language with 12 hours format, or choose 12 hours format in Date & Time, time picker won't display AM/PM anymore.

Gaia      3b76462c0377856d1b5cf454d12dde0ce8b768d4
Gecko     https://hg.mozilla.org/mozilla-central/rev/2255d7d187b2
BuildID   20140907160202
Version   35.0a1
Component: Gaia::System → Gaia::System::Input Mgmt
I think the problem is that the Time Picker is not reinitialized when time format is switched from 24hr to 12hr. 

1) Open the timepicker with 12h format, it looks like
2) Switch to 24h format, still ok
3) Switch back to 12h format, no AM/PM

Should be related to bug 1054135.
Flags: needinfo?(gasolin)
I can reproduce it in 9/10 master. 

STR: (while lang = english)

1) open ui test > UI > select, press time field. The time popup shows 12h format.
2) open settings > Date & Time panel, Switch to 24h format
2.1) change to ui test app,  press time field. The time popup shows 24h format. (OK)
3) change to settings > Date & Time panel, Switch to 12h format
3.1) change to ui test app,  press time field. The time popup shows 12h format but without AM/PM. (fail)

expect

3.1) change to ui test app,  press time field. The time popup shows 12h format with AM/PM. (ok)
Assignee: nobody → gasolin
Status: NEW → ASSIGNED
Flags: needinfo?(gasolin)
Depends on: 1054135
[Blocking Requested - why for this release]:

New STR shows it is reproducible when language default is 24hr format (ex: french)

STR: (while lang = french, default 24hr format)

1) open ui test > UI > select, press time field. The time popup shows 24h format.
2) change to ui test app,  press time field. The time popup shows 24h format. (OK)
3) open settings > Date & Time panel, Switch to 12h format
4) change to ui test app,  press time field. The time popup shows 12h format but without AM/PM. (fail)
blocking-b2g: --- → 2.1?
QA Wanted for branch checks (pretty sure it's a regression)
Keywords: qawanted
Blocking because pretty sure this is a regression. If branch checks show it's not, renom please.
blocking-b2g: 2.1? → 2.1+
This issue is reproducible on Flame 2.2 Master, Flame 2.1, and Open C 2.2 Master.

Observed behavior: Following STR at comment 2, timepicker UI no longer displays the AM/PM column for 12-hour format.

Device: Flame 2.2 Master
BuildID: 20140917212258
Gaia: d37950eb09e28aa18d0e01df9ff90574bd4337e0
Gecko: 426497473505
Version: 35.0a1 (2.2 Master)
Firmware: v165
User Agent: Mozilla/5.0 (Mobile; rv:35.0) Gecko/35.0 Firefox/35.0

Device: Flame 2.1
BuildID: 20140918073020
Gaia: 379e68fe729a684fa2fcddb30ea1e65508db73e1
Gecko: 44eec4673c25
Version: 34.0a2 (2.1)
Firmware: v165
User Agent: Mozilla/5.0 (Mobile; rv:34.0) Gecko/34.0 Firefox/34.0

Device: Open_C 2.2 Master
BuildID: 20140917212258
Gaia: d37950eb09e28aa18d0e01df9ff90574bd4337e0
Gecko: 426497473505
Version: 35.0a1 (2.2 Master)
Firmware: P821A10v1.0.0B06_LOG_DL
User Agent: Mozilla/5.0 (Mobile; rv:35.0) Gecko/35.0 Firefox/35.0

------------------

This issue is NOT reproducible on Flame 2.0 because the feature to change display hour format is NOT available in 2.0.

Device: Flame 2.0
BuildID: 20140918082321
Gaia: 31434a3949556171f3565ca47ac2b44e810e95e6
Gecko: 5cf783171d5c
Version: 32.0 (2.0)
Firmware: v165
User Agent: Mozilla/5.0 (Mobile; rv:32.0) Gecko/32.0 Firefox/32.0
QA Whiteboard: [QAnalyst-Triage?]
Flags: needinfo?(jmitchell)
Keywords: qawanted
Tests indicate that this in NOT a regression. The feature to change display hour format was not introduced until 2.1 and testing the oldest 2.1 build we have repros the bug so it seems this feature was implemented with this bug.

--------------------------------------------------------------
Repro's on oldest 2.1

Device: Flame 2.1
BuildID: 20140904062538
Gaia: a47ecb6368c015dd72148acde26413fd90ba3136
Gecko: ffb144a500a4
Version: 34.0a2 (2.1)
Firmware: V165
User Agent: Mozilla/5.0 (Mobile; rv:34.0) Gecko/34.0 Firefox/34.0
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(jmitchell)
[Blocking Requested - why for this release]: Back to a nom then. Thanks for checking!
blocking-b2g: 2.1+ → 2.1?
The root cause is we did not clean previous hourformat styles for time picker
Attachment #8491990 - Flags: review?(alive)
Triage: blocking
blocking-b2g: 2.1? → 2.1+
Triage: regression or not, time picker should show the correct format.
Attachment #8491990 - Flags: review?(alive) → review+
merged https://github.com/mozilla-b2g/gaia/commit/508af18b191c25181533299929c790aeb74437d7

thanks!
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [p=2]
Target Milestone: --- → 2.1 S5 (26sep)
Comment on attachment 8491990 [details] [review]
pull request redirect to github

[Approval Request Comment]
[Bug caused by] (feature/regressing bug #): feature bug 1054135
[User impact] if declined: AM/PM shows incorrectly when language is changed
[Testing completed]: TBPL pass
[Risk to taking this patch] (and alternatives if risky): low
[String changes made]: None
Attachment #8491990 - Flags: approval-gaia-v2.1?
Attachment #8491990 - Flags: approval-gaia-v2.1? → approval-gaia-v2.1+
This issue is verified fixed on Flame 2.1(319mb)(KK)(Full Flash) and Flame 2.2(319mb)(KK)(Full Flash)

AM and PM is always shown on the 12h time picker after changing back and forth between 24h and 12h formats. 

Flame 2.1 

Device: Flame 2.1 KK (319mb) (Full Flash)
BuildID: 20141012001201
Gaia: d18e130216cd3960cd327179364d9f71e42debda
Gecko: 610ee0e6a776
Gonk: 52c909e821d107d414f851e267dedcd7aae2cebf
Version: 34.0a2 (2.1)
Firmware: V180
User Agent: Mozilla/5.0 (Mobile; rv:34.0) Gecko/34.0 Firefox/34.0

Flame 2.2 

lame 2.2 Master  KK (319mb) (Full Flash)
BuildID: 20141012040203
Gaia: 717ad4e8b7fc10ab8248500d00ba5ba0977fa8ab
Gecko: 44168a7af20d
Gonk: 52c909e821d107d414f851e267dedcd7aae2cebf
Version: 35.0a1 (2.2 Master)
Firmware: V180
User Agent: Mozilla/5.0 (Mobile; rv:35.0) Gecko/35.0 Firefox/35.0
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: