#355 ✓resolved
Sergey Avseyev

calendar.parse() cannot parse numbers properly

Reported by Sergey Avseyev | September 18th, 2010 @ 11:11 AM | in 2.0.0 Release

Calendar parse method works incorrectly

new Calendar().parse('2010-07-01')
=> Thu Jul 01 2010 00:00:00 GMT+0300 (EEST)

new Calendar().parse('2010-08-01')
=> Tue Dec 01 2009 00:00:00 GMT+0200 (EET)

I think it because of using parseInt() method here http://github.com/rightjs/rightjs-ui/blob/4526edad43bc7b668b61/src/... which treats '08' as octal number. I think it should be toInt(value) or parseInt(num, 10)

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RightJS Core Tickets

Shared Ticket Bins

People watching this ticket