Switch branches/tags
Nothing to show
Clone or download
Latest commit 0b74b2e Aug 23, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
filters ad locale and location definitions Jul 21, 2018
src Add Lagos timezone Aug 22, 2018
.eleventy.js minify and inline CSS Jul 20, 2018
.gitignore beginnings Jul 19, 2018
README.md Update README.md Jul 20, 2018
_redirects Merge pull request #6 from lauragift21/master Aug 23, 2018
netlify.toml first pass Jul 19, 2018
package.json minify and inline CSS Jul 20, 2018
yarn.lock first pass Jul 19, 2018




A ludicrous experiment triggered by a playfull tweet:

free side project idea: HTML-only static site generated clock that deploys a new version to @netlify every minute – @zachleat

What does it do?

  • It builds a page with the local time for a variety of timezones. (correct at build time.)
  • When served on Netlify's global CDN, visitors are routed to the correct page for them based on the country they access from.

What on earth for?

Since we can run this build so regularly and with such confidence on Netlify, we rebuild and deploy automatically every minute.

Are you an idiot?

Possibly. But it turns out that this is a nice example of how the country-specific CDN routing is on Netlify thanks to its concise, yet powerful _redirects API. (docs)

Have a poke around!

Developing locally

// clone this repository
git clone git@github.com:philhawksworth/html-time.git

// move into the project and install the dependencies
cd html-time

// run a local development server with auto-rebuild and hot reloading
yarn start