Yet another; this one is similar to the approach employed by Didgeridrew but uses as_datetime instead of strptime to convert the datetime string to a datetime object.
Thank you guys. Both your solutions worked but the formatting looked kind of wonky: 2023-08-04 11:49:11+02:00
Not really easy to read with the timezone adjustment value at the end so I improved it a bit.
I ended up converting the datetime object to UNIX timestamp and using a filter to display HH:MM:SS only.
You marked your own post with the Solution tag, despite the fact it contains information provided by others. The custom of this community forum is to assign the tag to the first post whose suggestions are used to solve your original problem. 99% of the template in your post came from this post.
If every user marked their own post as the Solution, it would give the impression that everyone ultimately solves their own problems.