timepicker value property does not zero-pad hour

NEW
Unassigned

Status

()

Core
XUL
7 years ago
6 years ago

People

(Reporter: bugzilla, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

7 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17

When pulling the value from the timepicker, the hour is not zero-padded.

Reproducible: Always

Steps to Reproduce:
Access the URL above and set the timepicker to 08:00

Actual Results:  
The alert box reports 8:00:00

Expected Results:  
The alert box should report 08:00:00

See the page https://developer.mozilla.org/en/XUL/timepicker which clearly states the value property return a value in the format HH:MM:SS

Comment 1

6 years ago
Confirming issue on Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17

Setting status to New.
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.