formatDate() gives correct date -1 day (Google Apps Script)
问题 I'm using a Google Spreadsheet to log some things on a day-to-day basis. To make it user-friendly to my colleagues I've made the spreadsheet as "interface-ish" as possible, basically it resembles a form. This "form" has a submit button that saves the sheet and creates a new sheet (copy of template). The problem is that the sheet that is saved should be saved with the date from a cell. BUT it saves with the date one day before the actual date... (!) I'm going nuts trying to figure out why.