debian-mirror-gitlab/app/assets/javascripts/lib/utils/datefix.js
2017-09-10 17:25:29 +05:30

8 lines
142 B
JavaScript

const DateFix = {
dashedFix(val) {
const [y, m, d] = val.split('-');
return new Date(y, m - 1, d);
},
};
export default DateFix;