My code displays a wrong date compared to the given parameters and i don't understand why ...
timezone = "Europe/Paris";
date = new Date(2017,11,31,15,01,0,0);
Logger.log(Utilities.formatDate(date, timezone, 'YYYY-MM-dd HH:mm'));
The result is:
[17-06-08 13:51:38:726 PDT] 2018-12-31 15:01
and should be:
[17-06-08 13:51:38:726 PDT] 2017-12-31 15:01