// Sample handelbar code
Current System Date- {{utctime}} (UTC)
import Ember from 'ember'; import config from './../config/environment'; export default Ember.Route.extend({ query: 'from_unixtime(start_time)>=curdate() and from_unixtime(start_time)<=DATE_ADD(curdate(),INTERVAL+1 day)', model() { var store = this.store; return Ember.RSVP.hash({ todayruns: Ember.$.ajax({ url: config.server_host + '/' + config.api + '/runs?query=' + this.get('query'), dataType: "json", type: 'GET' }), }); }, setupController(controller, model) { this._super(controller, model); this.startWatchingTime(controller); controller.set('todayruns', model.todayruns); }, startWatchingTime: function(controller){ var self = this; controller.set('utctime', moment.utc().format('YYYY-MM-DD HH:mm:ss')); Ember.run.later(function(){ self.startWatchingTime(controller); }, 1000); } });