angular-ui / ui-calendar

A complete AngularJS directive for the Arshaw FullCalendar.
http://angular-ui.github.io/ui-calendar/
MIT License
1.49k stars 728 forks source link

timezone not work in 'ui.calendar' #385

Open nithi opened 8 years ago

nithi commented 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'
}};

}]);