Skip to content

Commit bdcc01e

Browse files
committed
规范代码
1 parent be67714 commit bdcc01e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qiniu/storage/resume.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function putReq (config, uploadToken, key, rsStream, rsStreamLen, putExtra, call
134134
} else if (putExtra.version === 'v2') {
135135
//check etag expired or not
136136
var expiredAt = blkputRets.expiredAt;
137-
var timeNow = Date.parse(new Date()) / 1000
137+
var timeNow = new Date() / 1000
138138
if (expiredAt > timeNow && blkputRets.uploadId !== '') {
139139
finishedEtags.etags = blkputRets.etags;
140140
finishedEtags.uploadId = blkputRets.uploadId;

0 commit comments

Comments
 (0)