Skip to main content

Search and Top Navigation

#9184 open bug ()

Opened March 25, 2013 04:22PM UTC

Last modified March 27, 2013 01:21AM UTC

Datepicker: parsedate Unix timestamp string with negative value throws an error

Reported by: oclement Owned by:
Priority: minor Milestone: none
Component: ui.datepicker Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:
Description

See plunk here: http://embed.plnkr.co/8DGYfF31P53AG4KIJFPs

Using a negative Unix Date (Before 01/01/1970)

$.datepicker.parseDate( '@', '-996436800000');

Throws an error: Uncaught Missing number at position 0

Expected:

Should be able to parse date correctly

Attachments (0)
Change History (1)

Changed March 27, 2013 01:21AM UTC by tj.vantoll comment:1

status: newopen
summary: $.datepicker.parsedate Unix timestamp string with negative value throws an errorDatepicker: parsedate Unix timestamp string with negative value throws an error

Confirmed. 0 works but -1 and lower throw an error.