Hi forum!
So we recently found ourselves in need of converting times from user's local time to UTC and other way around in Java script web resource.
To convert time to local time from UTC we used LocalTimeFromUtcTime function in WebAPI like following:
contoso.crm4.dynamics.com/api/data/v9.2/LocalTimeFromUtcTime(TimeZoneCode=@TimeZoneCode,UtcTime=@UtcTime)?@TimeZoneCode=47&@UtcTime=2021-05-05T00:00:00.000Z
{
"error": {
"code": "0x8006088a",
"message": "Resource not found for the segment 'UtcTimeFromLocalTime'."
}
}