mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
fix(Calendar): fix time
This commit is contained in:
parent
71962ce369
commit
84b8b086a7
@ -4,6 +4,9 @@ var utils = require('./utils.wxs');
|
|||||||
function getMonths(minDate, maxDate) {
|
function getMonths(minDate, maxDate) {
|
||||||
var months = [];
|
var months = [];
|
||||||
var cursor = getDate(minDate);
|
var cursor = getDate(minDate);
|
||||||
|
cursor.setHours(0);
|
||||||
|
cursor.setMinutes(0);
|
||||||
|
cursor.setSeconds(0);
|
||||||
|
|
||||||
cursor.setDate(1);
|
cursor.setDate(1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user