               day.day -7 + weekDay  ## previous week
             else
               day.day weekDay  ## same week
+          when 'hour'
+            day = moment(msg.created).startOf unit
+            .year 2000
+            .dayOfYear 1
           else
             day = moment(msg.created).startOf unit
         if lastDate?
           if lastDate.valueOf() > day.valueOf()
-            console.warn "Backwards time travel from #{lastDate} to #{day}"
+            console.warn "Backwards time travel from #{lastDate.format()} to #{day.format()}"
             lastDate = day
             makeDay()
           else

        stats.labels.push lastDate.format format
        for dataset in stats.datasets
          dataset.data.push 0
      Messages.find stats.query.call(t)
      ,
        fields:
          created: true

          title: true
          authors: true
        sort: created: 1
      if unit == 'hour'
        msgs = _.sortBy msgs.fetch(), (msg) -> moment(msg.created).format 'HH:mm'
      msgs.forEach (msg) =>
        switch unit
          when 'week'
            day = moment(msg.created).startOf 'day'
