In this custom module, you can see the how to connect to World Timezone Api and shows the results in form table.
- You need to have Lando for environment
- First clone repo
- Lando start
- Lando info (show all the configuration like database login)
- Need to add a menu in Drupal configuration with path: /timezone.
- If datetime not show need to refresh cache using Drupal configuration or lando drush cache-rebuild.
- You need to refresh because in some cases, one city is show and other not.
- Api: https://worldtimeapi.org/
Luis Miranda