To display event start and end dates in the local time of your website visitors using Webflow, you'll need to use some JavaScript to detect the user's timezone and adjust the displayed date accordingly.
<script>
document.addEventListener("DOMContentLoaded", function() {
var eventElements = document.querySelectorAll('.event-date'); // Assuming dates are using class 'event-date'
eventElements.forEach(function(elem) {
var utcDate = new Date(elem.getAttribute('data-utc')); // Presumed data-utc attribute with UTC date
var localDate = utcDate.toLocaleString(); // Converts to local timezone string
elem.textContent = localDate; // Sets the local date string
});
});
</script>
data-utc with the UTC date) that JavaScript will read to perform the conversion.
Store event dates as UTC in your Webflow CMS and use JavaScript to convert and display these dates in the visitor's local time. Ensure your script appropriately selects and manipulates the relevant date elements.