Commit 65dc73e3 authored by nikogu's avatar nikogu

fixed time select invalid in safari

parent 8ea75312
...@@ -42,7 +42,7 @@ export function getTimeDistance(type) { ...@@ -42,7 +42,7 @@ export function getTimeDistance(type) {
const nextYear = nextDate.year(); const nextYear = nextDate.year();
const nextMonth = nextDate.month(); const nextMonth = nextDate.month();
return [moment(`${year}-${fixedZero(month + 1)}-01 00:00:00`), moment(new Date(`${nextYear}-${fixedZero(nextMonth + 1)}-01 00:00:00`).getTime() - 1000)]; return [moment(`${year}-${fixedZero(month + 1)}-01 00:00:00`), moment(moment(`${nextYear}-${fixedZero(nextMonth + 1)}-01 00:00:00`).valueOf() - 1000)];
} }
if (type === 'year') { if (type === 'year') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment