JSFiddle - React, Tailwind, and code Playground

by Ben

HTML

Test:

JavaScript

// Convert the passed DateTime in UTC format and return in the local DateTime format.
// https://stackoverflow.com/questions/13622142/javascript-to-convert-utc-to-local-time
function convertUTCtoLocal(){
	var offset = new Date().getTimezoneOffset();
	utc_date.setMinutes(utc_date.getMinutes() - offset);
}