Closed Bug 434482 Opened 16 years ago Closed 16 years ago

Parse time zoon offset as decimal

Categories

(Mozilla Labs :: Operator, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: takenspc, Assigned: takenspc)

Details

Attachments

(1 file)

Attached patch Patch rv. 1.0Splinter Review
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)
Status: NEW → ASSIGNED
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+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: