我们如何将天蓝色数据工厂中的时区转换为指定的时区

how can we convert timezone in azure data factory to specified timezones

我想在“设置变量”中编写表达式 activity 并将 utcnow() 转换为“IST”(印度标准时间)

我将表达式写为:@convertTimeZone(utcnow(),'UTC','Indian Standard Time')

调试管道时出现以下错误:

在函数 'convertTimeZone' 中,为时区 ID 'Indian Standard Time' 提供的值无效。 '.

我试过了:

@convertTimeZone(utcnow(),'UTC','Pacific Standard Time')

@convertTimeZone(utcnow(),'UTC','Eastern Standard Time') 并且调试对这两个都运行良好

如何让它在不适用的情况下工作?

Microsoft Time Zone Index Values中没有'Indian Standard Time',而是'India Standard Time'。

所以你应该把你的表达方式改成这样:@convertTimeZone(utcnow(),'UTC','India Standard Time')


更新:

The name for the target time zone. For time zone names, see Microsoft Time Zone Index Values, but you might have to remove any punctuation from the time zone name.

当您在 Microsoft 时区索引值中使用时区时,您需要从时区名称中删除所有标点符号。