Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default date is not formatted correctly #4

Closed
mattymess opened this issue Oct 10, 2014 · 2 comments
Closed

Default date is not formatted correctly #4

mattymess opened this issue Oct 10, 2014 · 2 comments

Comments

@mattymess
Copy link

I set my date in my controller with date = new Date() and set date-format="MM/dd/yyyy", but when the page renders the first time, the value in the input box is not formatted at all.

The date doesn't get formatted until I select a date from the datepicker-popup.

See this plnkr --> http://plnkr.co/edit/M1AEtBhLxMIvuw6nNv4v?p=preview

@zhaber
Copy link
Owner

zhaber commented Oct 11, 2014

Hi Matt,

Thank you for taking the time to report this issue. This problem is caused by a non backwards compatible change in angularjs-1.3.0 rc0, which assigns a string representation of a model object to ngModel.$viewValue variable. You can find more information at angular-ui/bootstrap#2659 Until the issue is fixed, please consider the current stable version of angularjs (1.2)

Vitalii

@zhaber zhaber closed this as completed Oct 11, 2014
@mattymess
Copy link
Author

Hey Vitalii,

Thanks for the response. I'll downgrade to angular's latest until this is fixed. Appreciate the work you put in on this module.

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

No branches or pull requests

2 participants