I'll probably make a video on this later today. In the meantime, this converts timezones.
Updated to specifically expect Assistable JSON payload and pull body.args away from metadata for TimeAPI call. Will add logging at some point.
POST /Conversion/ConvertTimeZone
{
"fromTimeZone": "Europe/Amsterdam",
"dateTime": "2024-09-14 17:45:00",
"toTimeZone": "America/Los_Angeles",
"dstAmbiguity": ""
}
And returns:
{
"conversionResult": {
"dateTime": "2024-09-14T08:45:00",
"dstActive": true,
"day": 14,
"time": "08:45",
"month": 9,
"seconds": 0,
"year": 2024,
"minute": 45,
"timeZone": "America/Los_Angeles",
"hour": 8,
"date": "09/14/2024",
"milliSeconds": 0
},
"fromDateTime": "2024-09-14T17:45:00",
"fromTimezone": "Europe/Amsterdam",
"toTimeZone": "America/Los_Angeles"
}