Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Change datetime individual #6666

Closed
Closed
@jimmywarting

Description

@jimmywarting

When a date object is bound to date/time/week/month and the value is updated via one of these input controls then the date object is reset to the beginning of time.

    app.controller('MainCtrl', function($scope) {
      $scope.date = new Date();
    });

    <input type="date" ng-model="date">
    <input type="time" ng-model="date">
    <input type="week" ng-model="date">
    <input type="month" ng-model="date">
    <input type="datetime-local" ng-model="date">

Change the date/time/week and you'll see that it resets.

http://plnkr.co/edit/WTZtQG96D7qEbd310Y0d?p=preview

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions