Skip to content

Commit

Permalink
update cdn sample
Browse files Browse the repository at this point in the history
  • Loading branch information
xiong-liang committed Sep 14, 2015
1 parent 19c20b1 commit 8052c78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions samples/cdn/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ cdn.refreshObjectCaches({

cdn.describeCdnMonitorData({
DomainName: "cdn.test.com",
StartTime: new Date("2014-12-10T00:00:00Z"),
EndTime: new Date("2014-12-10T00:10:00Z")
// 注意, 之前是传入 Date 对象, 现在改为一个 ISO 时间字符串, 而且时间精确到秒而不是毫秒
StartTime: "2014-12-10T00:00:00Z",
EndTime: "2014-13-10T00:10:00Z"
}, function(err, res) {
console.log(err, res);
});

0 comments on commit 8052c78

Please sign in to comment.