From 8052c78dc4638264745de38be767b8f12b589170 Mon Sep 17 00:00:00 2001 From: "xiongliang.xl" Date: Mon, 14 Sep 2015 15:56:05 +0800 Subject: [PATCH] update cdn sample --- samples/cdn/test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/cdn/test.js b/samples/cdn/test.js index e78f9120..04c7c3ba 100644 --- a/samples/cdn/test.js +++ b/samples/cdn/test.js @@ -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); }); \ No newline at end of file