Skip to content

Commit 1c8f18d

Browse files
wshengqibadboy-huaqiao
authored andcommitted
fix the date bug
Signed-off-by: wshengqi <wshengqi@vmware.com>
1 parent 178e9ab commit 1c8f18d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/edgex-ui-server/static/js/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ var ISO8601DateStrToLocalDateStr = function (iso8601String) {
6060
var hour = iso8601String.substring(9,11);
6161
var minute = iso8601String.substring(11,13);
6262
var second = iso8601String.substring(13);
63-
return new Date(Date.UTC(year,month,day,hour,minute,second)).Format("yyyy-MM-dd hh:mm:ss");
63+
return new Date(Date.UTC(year,month-1,day,hour,minute,second)).Format("yyyy-MM-dd hh:mm:ss");
6464
};
6565

6666
//YYYYMMDD'T'HHmmss

0 commit comments

Comments
 (0)