Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

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

Open
ulk200 opened this issue Mar 6, 2014 · 0 comments
Open

Comments

@ulk200
Copy link

ulk200 commented Mar 6, 2014

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant