No. The project time zone can not be changed with code. You can get the script time zone Session.getScriptTimeZone() with code, but you can not set it with code. You shouldn't be changing the script time zone in code anyway. I'm assuming that you have users who are in different time zones? If there are multiple users of the script in different time zones, then I set the Time Zone in the script to +GMT 00:00 no daylight savings. And leave it at that.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…