Welcome to mirror list, hosted at ThFree Co, Russian Federation.

datefix.js « utils « lib « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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;