如何在此 Google Apps 脚本中格式化时间?

How to format the time in this Google Apps Script?

我想在我的脚本中读取 Google Sheet 单元格时格式化它,但它在 25 分钟后出现。 单元格的时间是 20:00:00 但输出是“20:25”。我正在使用这个

var formattedDate = Utilities.formatDate(dataRow[9], "GMT+2", HH:mm");

如果不使用它,即使单元格的内容是 20:00:00,时间也会显示为“1899-12-30T18:25:08.000Z”。任何想法如何删除额外的 25 分钟?

使用电子表格的时区设置。

var formattedDate = Utilities.formatDate(dataRow[9], SpreadsheetApp.getActive().getSpreadsheetTimeZone(), "HH:mm");