I just ran into an awkward issue on Google Apps Script.
Since yesterday, Dec 30, 2019, the function Utilities.formatDate returns 2020 as the current year.
In the screenshot, you can see the log of function ‘yearBug’.
The log timestamp clearly indicates Dec 31, 2019, but the output is 2020.
The timezone in the code and in the log is EST (Toronto time).
Does anyone have a good explanation?