我在 google 日历中创建事件时的日期格式错误

Wrong date format when i create an event in google calendar

我使用 google 表单在我的日历中创建活动。我的 spreadsheet 上记录的日期格式是欧洲格式 DD/MM/YYYY,但在创建事件时 google 日历将日期信息设为美国格式 MM/DD/YYYY。因此,事件在错误的日期显示在我的日历中...

我检查了我的 gsuite 帐户、驱动器,sheet 设置了正确的语言和时区(法国/巴黎)。 你能帮助我吗 ? 谢谢

例如。 ZAZOU 先生 3 月 2 日 -----> 2 月 4 日

编辑:我用来创建事件的最后一个代码

function createEvent_ (namedValues) {
  //options are the key/value pairs you can set when created a 
  //calendar event, below accesses the data given for description 
  //and location - guest is hard coded
var options = { description: namedValues.Description[0],
ocation: namedValues.Location[0],
              guests:"exemple"};
  //cEvent makdes the calendar event, You have to choose the calendar 
  //name that you would like to use, then ask for the Name of the event, 
  //start date and end date, then passes the options you have selected above
  var cEvent = CalendarApp.getCalendarsByName("Example")[0].createEvent(
              namedValues.Name[0], 
              new Date(namedValues.Starts), 
              new Date(namedValues.Ends), 
              options)

}

好的,知道了! 问题来自 google 表单插件 "Form publisher"。我在我的表单中添加了一个额外的日期字段以进行测试。在表单编辑器中,google显示的日期格式是正确的,但是当我浏览表单发布者的模板选项时,格式被命名为错误格式。