Ajouter

Lorem ipsum

Lorem ipsum

Easter egg

3 views

3 min

How to Display a Visitor’s Local Time in Webflow

Learn how to display your visitor’s local time in real time in Webflow with JavaScript and the Intl API.

In this tutorial, Sandro, co-founder of Gemeos Webflow agency, shows you how to display the visitor’s local time in real time in Webflow.

Example

Visitor’s local time

Loading...

DisplayFormatID
Time + timezone🕐 It is 14:32:07 where you are (Europe/Paris)local-time

1. Add the ID to your text

On your Text Block: custom attribute id = local-time.

2. Add the script in Footer code

(function() {
var tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
function tick() {
var time = new Date().toLocaleTimeString('fr-FR', {
timeZone: tz, hour: '2-digit', minute: '2-digit', second: '2-digit'
});
var el = document.getElementById('local-time');
if (el) el.textContent = '🕐 It is ' + time + ' where you are (' + tz + ')';
}
tick();
setInterval(tick, 1000);
})();

good to know

The Intl.DateTimeFormat().resolvedOptions().timeZone API returns the visitor’s OS time zone (for example, 'Europe/Paris'). Supported by all modern browsers without an external library.

Conclusion

Real-time local time creates a direct connection with the visitor. It’s ideal on contact pages to put your hours into context.

Published on

You might be interested in these tutorials

Similar tutorials

SEO / GEO

5 min read

5 views

How to Set Up a Redirect in Webflow? (2026)

Updated on 19.12.2025 by Sandro DA SILVA

SEO / GEO

5 min read

5 views

Add structured data to your Webflow site?

Updated on 21.08.2025 by Sandro DA SILVA

No-code

5 min read

5 views

How to Obfuscate a Link in Webflow

Updated on 23.04.2025 by Sandro DA SILVA

Let’s f*****G GO !!

Ready to launch
Your business?

Alexandre

Max

Enora

Bryan

Cannelle

Tiphaine

You'll :heart: our collaboration...