我正在使用电源自动中的 ConvertTimeZone 函数将 UTC 转换为某个时区。唯一已通过的转换是从 UTC 到 东部标准时间:
convertTimeZone(triggerOutputs()?['body/Maintenance_x0020_Window'],'UTC','Eastern Standard Time','dd-MMM-yyyy hh:mm tt')
接下来我需要转换为伦敦的时区 - 格林威治标准时间/GMT中欧夏令时间/CEST,但我收到此错误:
为时区 ID“中欧夏令时间”提供的值无效。
知道我做错了什么吗?
I'm using ConvertTimeZone function in power automate to convert from UTC to a certain time zone. The only conversion that has passed is from UTC to Eastern Standard Time:
convertTimeZone(triggerOutputs()?['body/Maintenance_x0020_Window'],'UTC','Eastern Standard Time','dd-MMM-yyyy hh:mm tt')
Next I need to convert to the time zone in London - Greenwich Mean Time/GMT and to Lyon, Rhône, France time zone Central European Summer Time/CEST but i get this error:
the value provided for the time zone id 'Central European Summer Time' was not valid.
Any idea what I'm doing wrong?
发布评论
评论(1)
看来
转换时间区域
函数期望Windows时区标识符。对于您要求的区域,ID为:“东部标准时间”
- 对于美国东部时区加拿大包括EST和EDT“ GMT标准时间”
- 对于大不列颠,包括GMT和BST“浪漫标准时间”
- 法国和其他几个欧洲国家/地区,包括CET和CEST是的- 名称令人困惑。您可以通过阅读标题为“ Microsoft Windows Windows时区数据库” “ Microsoft Windows时区数据库” 来获取整个区域名称列表的方法。 com/tags/timezone/info“>时区标签wiki 。
It would seem that the
convertTimeZone
function expects a Windows time zone identifier. For your requested zones, the IDs are:"Eastern Standard Time"
- for the Eastern time zone of US & Canada inclusive of both EST and EDT"GMT Standard Time"
- for Great Britain, inclusive of both GMT and BST"Romance Standard Time"
- for France and several other European countries, inclusive of both CET and CESTYes - the names are confusing. You can read more about this and see ways to get the entire list of zone names by reading the subsection titled "The Microsoft Windows Time Zone Database" within the timezone tag wiki.