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:
parent
cce1b5ef50
commit
66bc874d95
5 changed files with 12 additions and 4303 deletions
|
@ -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);
|
Loading…
Add table
Add a link
Reference in a new issue