Global variable ${__from📅YYYY-MM-DDTHH:mm:ss} not working

So I am using Infinity data source in Grafana and I am making a call with a URL so I was using this variable ${__from:date:YYYY-MM-DD} inside url and it was working fine then I decided to use time in this also so I add time like this ${__from:date:YYYY-MM-DDTHH:mm:ss} but the thing is it is not getting time properly.

Date Range From Value: 2023-01-01 00:00:00
Variable: ${__from:date:YYYY-MM-DDTHH:mm:ss}
Return: 2023-01-01T00

As per the documentation, you can’t use : in the format.

so as a workaround, you may need to break your variable like ${__from:date:YYYY-MM-DDTHH}:${__from:date:mm}:${__from:date:ss}