Opened 6 years ago

Last modified 6 years ago

#9184 open bug

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

Change History (1)

comment:1 Changed 6 years ago by tj.vantoll

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.

Note: See TracTickets for help on using tickets.