Based on the discussion in the thread Convert UTC date time to local date time, (Thanks to Ben Bryant ) I have added the script in the wp_head
<script type="text/javascript">
function localize(t)
{
var d=new Date(t+" UTC");
document.write(d.toString());
}
</script>
and then in the body of the page used the below script to display the UTC date in the local timezone
<script type="text/javascript">localize("11/09/2021 22:59:00 PM");</script>
Accordingly, It displays the below (my browser time is south korea)
Wed Nov 10 2021 07:59:00 GMT+0900 (Korean Standard Time)
The query is: how to include daylight savings functionality with the script. I'm not a superuser. Please help me with the instructions where to add the code and how to display it. Because I'm using to display my UTC date stored in the metadata