github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/ui/app/helpers/format-month-ts.js (about) 1 import moment from 'moment'; 2 import Helper from '@ember/component/helper'; 3 4 export function formatMonthTs([date], options = {}) { 5 const format = options.short ? 'MMM D' : 'MMM DD HH:mm:ss ZZ'; 6 return moment(date).format(format); 7 } 8 9 export default Helper.helper(formatMonthTs);