Skip to content

Commit 42334c8

Browse files
committed
weekOfYear修复
1 parent 226c7af commit 42334c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/JC.common/0.3/common.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,12 +786,13 @@
786786
_d.setDate( _d.getDate() + 6 );
787787
_tmp.end = _d.getTime() + _dayOffset;
788788
//_tmp.end = formatISODate(_d);
789+
_r.push( _tmp );
789790
_d.setDate( _d.getDate() + 1 );
790791
if( _d.getFullYear() > _year ) {
791792
_d = new Date( _d.getFullYear(), 0, 1 );
792793
if( _d.getDay() < 2 ) break;
793794
}
794-
_r.push( _tmp );
795+
795796
}
796797
return _r;
797798
}

0 commit comments

Comments
 (0)