by Sanket Parmar on WordPress.org
Enable world clocks for the sites with different timezones, with a custom block for the WordPress block editor (Gutenberg).

Insert World Clocks Block into the block editor.
Enable world clocks for the sites with different timezones, with a custom block for the WordPress block editor (Gutenberg).
World clocks are an essential tool for tracking the current time across different time zones around the globe. They are widely used in various contexts, such as international business, travel, and global communication.
Inspiration: World Clock for WordPress
There are two blocks available with this plugin:
Try to search for World Clocks block while adding a new block to the block editor.
You can find various methods to insert a block into the block editor using this documentation: Adding a new block.
Once a block is inserted, it will ask you to select a layout.
There are four layouts:
You can also skip selecting a layout, and it will be set to default layout: Digital Row
You will be able to change the layout from the block settings even after you have selected one or skipped.
The World Clocks block has three settings panel:
The Visibility Settings panel has different options based on the selected layout.
Clocks per row
Stack on mobile
Show Clocks AmPm Indicator
Show Digital Time
Time Format
Show Date
Date Format
There are four available layouts to choose from:
1. Digital Row – Default : This will show world clocks as digital clocks in rows.
2. Digital Column : This will show world clocks as digital clocks in columns.
3. Clock : This will show world clocks as analog clocks in columns with timezone showing below the clock.
4. Clock Reverse : This will show world clocks as analog clocks in columns with timezone showing above the clock.
This setting panel will only appear if the selected layout is Clock or Clock Reverse.
There are three available options to choose from:
1. Number – Default : This will show the marks as numbers in analog clock.
2. Combine : This will show the marks as combined in analog clock. The numbers – 3, 6, 9 and 12 – will be shown as numbers, and the rset will be show as a line.
3. Line : This will show the marks as line in analog clock.
You can insert Single Clock block as many as you’d like inside the parent World Clocks block.
You can select any timezone from the available list by just clicking on the timezone textbox and start typing. You can remove existing selected timezone and search for more.
A custom timezone selector with autocomplete is created for this. A custom helper method outputs the available timezones, similarly wp_timezone_choice().
You can override the default timezone label with your own.