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

fix(datepicker): ng-model value can be a timestamp #3322

Closed
wants to merge 1 commit into from

Conversation

khashayar
Copy link
Contributor

Accept a number of milliseconds since 01.01.1970 as a valid value
for ng-model

Closes #2345

@antoinepairet
Copy link

Could you add a test to prevent regression?
Once done, please squash as 1 commit.
rgds

@karianna karianna added this to the 0.13.0 milestone Feb 23, 2015
Accept a number of milliseconds since 01.01.1970 as a valid value
for `ng-model`:
- change parseDate() to handle timestamp values
- add the test to `datepicker.spec.js`

Closes angular-ui#2345
@khashayar
Copy link
Contributor Author

Test has been added.

@rvanbaalen
Copy link
Contributor

Is this a fix or a feature?


This email was sent from my iPhone and therefore subject to typos and other inaccuracies.

On 8 mrt. 2015, at 12:45, Khashayar Hajian [email protected] wrote:

Test has been added.


Reply to this email directly or view it on GitHub.

@khashayar
Copy link
Contributor Author

It's a fix for #2345

@wesleycho
Copy link
Contributor

Landed as d253208, thanks!

@wesleycho wesleycho closed this Mar 22, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Timestamp treated as invalid model value in datepicker
5 participants