Fixed Date
This commit is contained in:
@ -169,8 +169,10 @@
|
||||
}
|
||||
|
||||
function loadData() {
|
||||
var isoString = new Date().toISOString();
|
||||
var url = _DataDirectory + '/' + isoString.substring(5, isoString.indexOf("T")) + '.json';
|
||||
var currentDate = new Date();
|
||||
var mm = (new Date().getMonth() + 1).toString().padStart(2, '0');
|
||||
var dd = currentDate.getDate().toString().padStart(2, '0');
|
||||
var url = _DataDirectory + '/' + mm + '-' + dd + '.json';
|
||||
console.log(url);
|
||||
var _ = $.getJSON(url, function (data) {
|
||||
console.log("success", data.length);
|
||||
|
Reference in New Issue
Block a user