Parse a UTC date, output local datetime

I have already read How to get local time in php? and similar questions, but here I want to do the contrary: With a given datetime in UTC (e.g. 2021-03-31 23:45:00), how to output the date in local …