summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/lib/utils/datefix.js
blob: 990dc3f6d1a181db63a1ed69941b0c443202e3ee (plain)
1
2
3
4
5
6
7
8
const DateFix = {
  dashedFix(val) {
    const [y, m, d] = val.split('-');
    return new Date(y, m - 1, d);
  },
};

export default DateFix;