Closed
Bug 863165
Opened 12 years ago
Closed 11 years ago
Wrong time format display for calendar new event view[spanish]
Categories
(Firefox OS Graveyard :: Gaia::Calendar, defect, P1)
Tracking
(blocking-b2g:leo+, firefox24 fixed, b2g18 verified, b2g18-v1.0.1 wontfix)
People
(Reporter: leo.bugzilla.gaia, Assigned: gerard-majax)
References
Details
(Whiteboard: [TD-10834])
Attachments
(5 files, 1 obsolete file)
Precondition: Please use spanish as the default language.
Test Action:
1. Go to new event creation view.
Symptom:
The format for date is YYYY-MM-DD.
Expected:
The format of date should be DD-MM-YYYY.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → UNCONFIRMED
Ever confirmed: false
Resolution: DUPLICATE → ---
The time format displayed in system settings and calendar add-event view doesn't go together. In settings view, the time format tends to change w.r.t the applied locale. But, this is not the case with calendar.
The date format used in calendar is YYYY-MM-DD. The default date format for Spanish locale is DD-MM-YYYY.
I would suggest the date format should be based on the applied locale.
Please let know your comments.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(jsmith)
Comment 5•11 years ago
|
||
Triage - block for inconsistent presentation and regional requirements.
blocking-b2g: leo? → leo+
Assignee | ||
Comment 6•11 years ago
|
||
I suspect it might come from the exportDate method in js/utils/input_parser.js of Calendar app.
Assignee | ||
Comment 7•11 years ago
|
||
In fact I also have the issue in french locale :)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → lissyx+mozillians
Updated•11 years ago
|
Whiteboard: [TD]10834 → [TD-10834]
Target Milestone: --- → 1.1 QE2
Comment 8•11 years ago
|
||
This is also happening on 1.01.
blocking-b2g: leo+ → tef?
status-b2g18:
--- → affected
status-b2g18-v1.0.1:
--- → affected
status-firefox24:
--- → affected
Comment 9•11 years ago
|
||
The input here is doing the right thing according to the spec [1]. To implement this correctly we should have an "overlay" which sits over the input which is localized to the users locale.
http://www.w3.org/TR/html-markup/input.date.html [1]
http://tools.ietf.org/html/rfc3339#section-5
Comment 10•11 years ago
|
||
I think is pretty bad, but not a blocker, I am moving this back to leo+
blocking-b2g: tef? → leo+
Comment 11•11 years ago
|
||
(In reply to James Lal [:lightsofapollo] from comment #9)
> The input here is doing the right thing according to the spec [1]. To
> implement this correctly we should have an "overlay" which sits over the
> input which is localized to the users locale.
>
> http://www.w3.org/TR/html-markup/input.date.html [1]
> http://tools.ietf.org/html/rfc3339#section-5
I believe browser vendors are encouraged to display the date inside of an input type="date" according to the user's locale. Competing browsers do something like this, and we probably should as well.
That said, a simple gaia overlay as a workaround is probably going to be easier to implement :)
Assignee | ||
Comment 12•11 years ago
|
||
(In reply to Kevin Grandon :kgrandon from comment #11)
> (In reply to James Lal [:lightsofapollo] from comment #9)
> > The input here is doing the right thing according to the spec [1]. To
> > implement this correctly we should have an "overlay" which sits over the
> > input which is localized to the users locale.
> >
> > http://www.w3.org/TR/html-markup/input.date.html [1]
> > http://tools.ietf.org/html/rfc3339#section-5
>
> I believe browser vendors are encouraged to display the date inside of an
> input type="date" according to the user's locale. Competing browsers do
> something like this, and we probably should as well.
>
> That said, a simple gaia overlay as a workaround is probably going to be
> easier to implement :)
Yep, this is what I've figured out and starting working on.
Assignee | ||
Comment 13•11 years ago
|
||
(In reply to Alexandre LISSY :gerard-majax from comment #12)
> (In reply to Kevin Grandon :kgrandon from comment #11)
> > (In reply to James Lal [:lightsofapollo] from comment #9)
> > > The input here is doing the right thing according to the spec [1]. To
> > > implement this correctly we should have an "overlay" which sits over the
> > > input which is localized to the users locale.
> > >
> > > http://www.w3.org/TR/html-markup/input.date.html [1]
> > > http://tools.ietf.org/html/rfc3339#section-5
> >
> > I believe browser vendors are encouraged to display the date inside of an
> > input type="date" according to the user's locale. Competing browsers do
> > something like this, and we probably should as well.
> >
> > That said, a simple gaia overlay as a workaround is probably going to be
> > easier to implement :)
>
> Yep, this is what I've figured out and starting working on.
I have the first bits in place, will need a bit of polish, though, but I should have a patch to propose soon.
Status: NEW → ASSIGNED
Assignee | ||
Comment 14•11 years ago
|
||
A second screenshot showing the date formatted using spanish locale.
Assignee | ||
Comment 15•11 years ago
|
||
Please find attached a screenshot showing the formatting according to locale (dateTimeFormat_%x)
Assignee | ||
Comment 16•11 years ago
|
||
Please find the pull request for v1-train.
Attachment #749187 -
Flags: review?(kgrandon)
Assignee | ||
Comment 17•11 years ago
|
||
Please find the link for the pull request for master branch
Attachment #749189 -
Flags: review?(kgrandon)
Assignee | ||
Comment 18•11 years ago
|
||
Comment on attachment 749187 [details]
Link to Github https://github.com/mozilla-b2g/gaia/pull/9750
Removing this pull request because only one against master is needed.
Attachment #749187 -
Attachment is obsolete: true
Attachment #749187 -
Flags: review?(kgrandon)
Assignee | ||
Updated•11 years ago
|
Attachment #749189 -
Flags: review?(felash)
Assignee | ||
Comment 19•11 years ago
|
||
Please note that the tests might fail due to bug 872424
Comment 20•11 years ago
|
||
Comment on attachment 749189 [details]
Link to Github https://github.com/mozilla-b2g/gaia/pull/9751
I'll leave felash on review? in case there was something specific you wanted him to look at, otherwise this has landed on master.
Attachment #749189 -
Flags: review?(kgrandon) → review+
Comment 21•11 years ago
|
||
Comment 23•11 years ago
|
||
(In reply to Leo from comment #22)
> Requesting for v1-train uplift
You've already got leo+ here. No need to nominate for uplift - someone will come by to uplift this.
tracking-b2g18:
? → ---
Comment 24•11 years ago
|
||
Comment on attachment 749189 [details]
Link to Github https://github.com/mozilla-b2g/gaia/pull/9751
my r= was for the test part, that looks good to me.
Attachment #749189 -
Flags: review?(felash) → review+
Comment 25•11 years ago
|
||
(not tef -> wontfix 1.0.1)
Comment 27•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago → 11 years ago
Resolution: --- → FIXED
Comment 28•11 years ago
|
||
Uplifted bbd6e46084370f3aee54231695880bb702299710 to:
v1-train: 8de87b27aea21f81bd7f4bdbdc66aebae53d0a83
Updated•11 years ago
|
Comment 29•11 years ago
|
||
Verified on b2g18 on a 5/20 build with some sanity testing with the Spanish locale.
Keywords: verifyme
Updated•11 years ago
|
Flags: in-moztrap?
Updated•11 years ago
|
Flags: in-moztrap? → in-moztrap+
Comment 30•11 years ago
|
||
Added Calendar Suite Test Case #8757 [Calendar] Verify the correct time format is displayed while creating Calendar events in the Spanish language
You need to log in
before you can comment on or make changes to this bug.
Description
•