Parse time zoon offset as decimal

RESOLVED FIXED

Status

Mozilla Labs
Operator
RESOLVED FIXED
10 years ago
10 years ago

People

(Reporter: Takeshi Kurosawa, Assigned: Takeshi Kurosawa)

Tracking

Details

Attachments

(1 attachment)

(Assignee)

Description

10 years ago
Created attachment 321581 [details] [diff] [review]
Patch rv. 1.0

Some JavaScript file of "SemanticActions" parse time zone offset (and some other numbers) with |parseInt(foo)| like below:

> parseInt(hcalendar.dtend.substr(tzpos+1, 2), 10);

When the time zone offset hour is "08" or "09", it was parsed as 0 instead of 8 or 9.
# It was treated as an octal numeral.

We should use |parseInt(foo, 10)| instead of |parseInt(foo)|.
Attachment #321581 - Flags: review?(mozilla)
(Assignee)

Updated

10 years ago
Status: NEW → ASSIGNED

Comment 1

10 years ago
Comment on attachment 321581 [details] [diff] [review]
Patch rv. 1.0

Thank you for this patch. It will be in the next Operator
Attachment #321581 - Flags: review?(mozilla) → review+

Comment 2

10 years ago
Fix checked in.
Status: ASSIGNED → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.