Search code examples
scheduleralloy-ui

alloy-ui how do I change the scheduler to use 24h


Using this scheduler http://alloyui.com/tutorials/scheduler/ how would I change it to use 24h instead of AM/PM?


Solution

  • It appears you'll need to set the isoTime attribute on each supported view.

    var dayView = new Y.SchedulerDayView({
                                           isoTime: true
                                         });
    
    new Y.Scheduler(
      {
        boundingBox: '#myScheduler',
        date: new Date(2013, 3, 25),
        items: events,
        render: true,
        views: [dayView]
      }
    );
    

    Fiddle