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 possib
You are hardcoding the timezone in this line :
var Datename2 = Utilities.formatDate(newdate, "PST", "yyyy-MM-dd");
but this does not take into account the daylight saving and date only values in spreadsheets are always at 00:00:00 hours so one hour shift can change the date...
Replace with an automated value like this :
var Datename2 = Utilities.formatDate(newdate, Session.getScriptTimeZone(), "yyyy-MM-dd");