第54-56行:
54 - if (today == Utilities.formatDate(files[i].getLastUpdated(), "EST", "yyyy-MM-dd"))
{
55 - Logger.log(" -> File was modified today. Getting word count...");
56 - word_count += getFileWordCount(files[i].getId());
来自Google的错误消息显示:
getDailyWordCount错误值(第55行,文件“代码”)基于时间
我认为问题在于“EST”,因为我不在那个时区。我在GMT + 3:00
这是脚本以及它应该如何运作 - https://github.com/jamietr1/google-docs-writing-tracker
答案 0 :(得分:0)
您是否尝试将时区更改为: