Files
threshold-ui/ui/admin/app/helpers/format-date-iso-human.js
T

9 lines
215 B
JavaScript

import { helper } from '@ember/component/helper';
export default helper(function formatDateIsoHuman(params /*, hash*/) {
return params[0]
.toISOString()
.replace('T', ' ')
.replace(/\.\d*Z/, '');
});