1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 07:39:43 +02:00

view activity date formatting

This commit is contained in:
Harvey Kandola 2017-12-11 12:34:54 +00:00
parent cce1b5ef50
commit 66bc874d95
5 changed files with 12 additions and 4303 deletions

View file

@ -13,7 +13,10 @@ import { helper } from '@ember/component/helper';
import dateUtil from '../utils/date';
export function formattedDate(params) {
return dateUtil.toIsoDate(params[0], params[1]);
let format = params[1];
if (is.undefined(format)) format = 'Do MMMM YYYY, HH:mm';
return moment(params[0]).format(format);
}
export default helper(formattedDate);