summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/lib/utils/datefix.js
blob: bdf0f394d1a00b73fc75c9b72f3f60fb0a4e0aa1 (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;