+7
-2
code.js
+7
-2
code.js
···
34
return htmlOutput;
35
}
36
37
function confirmTemplate(e) {
38
const template = HtmlService.createTemplateFromFile('confirm');
39
const postUrl = e.parameter.postUrl
···
98
idx++;
99
}
100
101
-
idx = (nearestIdx + 1) % HOURS_NUM;
102
// var hourNames = [];
103
var rpList = JSON.parse(userProperties.getProperty("rpList"));
104
gasLog(rpList)
···
292
}
293
294
const getLocalHour = (date) => {
295
-
return date.getHours() + (9 + date.getTimezoneOffset() / 60);
296
}
297
298
const gasLog = (obj) => {
···
34
return htmlOutput;
35
}
36
37
+
function resetData() {
38
+
const userProperties = PropertiesService.getUserProperties();
39
+
userProperties.deleteAllProperties()
40
+
}
41
+
42
function confirmTemplate(e) {
43
const template = HtmlService.createTemplateFromFile('confirm');
44
const postUrl = e.parameter.postUrl
···
103
idx++;
104
}
105
106
+
idx = nearestIdx;
107
// var hourNames = [];
108
var rpList = JSON.parse(userProperties.getProperty("rpList"));
109
gasLog(rpList)
···
297
}
298
299
const getLocalHour = (date) => {
300
+
return (date.getHours() + (9 + date.getTimezoneOffset() / 60) + 24) % 24;
301
}
302
303
const gasLog = (obj) => {