debian-mirror-gitlab/app/assets/javascripts/lib/utils/datefix.js

9 lines
142 B
JavaScript
Raw Normal View History

2017-09-10 17:25:29 +05:30
const DateFix = {
dashedFix(val) {
const [y, m, d] = val.split('-');
return new Date(y, m - 1, d);
},
};
export default DateFix;