Open nithi opened 8 years ago
How to change timezone to local: http://plnkr.co/edit/LM39yL?p=preview.
myApp.controller('CalendarCtrl', ['$scope', function($scope){ var events = [ { title: "event1", start: new Date(2015, 6, 21) }, { title: "event2", start: new Date(2015, 7, 31), end: new Date(2015, 8, 02) }, { title: "event3", start: new Date(2015, 8, 01) }, ];
$scope.eventSources = [events]; $scope.calOptions = {
editable: true, header: { left: 'prev', center: 'title', right: 'next' }};
}]);
How to change timezone to local: http://plnkr.co/edit/LM39yL?p=preview.
myApp.controller('CalendarCtrl', ['$scope', function($scope){ var events = [ { title: "event1", start: new Date(2015, 6, 21) }, { title: "event2", start: new Date(2015, 7, 31), end: new Date(2015, 8, 02) }, { title: "event3", start: new Date(2015, 8, 01) }, ];
$scope.eventSources = [events]; $scope.calOptions = {
}]);