ui-date icon indicating copy to clipboard operation
ui-date copied to clipboard

integer value should be accepted when date-format is set to @ (timestamp)

Open ulk200 opened this issue 10 years ago • 0 comments

Hi, I had to set the datepicker with a timestamp value (integer), spefifying 'ui-date-format' to '@' but it was never parsed.

Line 92

  if (angular.isString(value) ) {
            return jQuery.datepicker.parseDate(dateFormat, value);
          }
          return null;
        });

Add an 'isNumber' test ? Or parse everything and catch all exception to return null ? Thanks.

ulk200 avatar Mar 06 '14 11:03 ulk200