sivakarthik229 / current_location
This module allows you to add the current date and time
Package info
github.com/sivakarthik229/current_location
Type:drupal-module
pkg:composer/sivakarthik229/current_location
dev-master
2023-01-09 12:50 UTC
Requires
- drupal/core: ^9.0 || ^10.0
This package is auto-updated.
Last update: 2026-03-10 17:23:27 UTC
README
INTRODUCTION
- Displays current date and time for the timezone selected in Timezone settings.
INSTALLATION
- Consult Drupal Module to see how to install and manage modules in Drupal 8.
Composer
If you use Composer, you can install 'Current Location' module using below command:
composer require sivakarthik229/current_location
CONFIGURATION
- If you go to
admin/config/timezone/settingsyou will see a fairly simple interface. - Add the Country, City name.
- Select Timezone.
- Click the "Save configuration" button and you are good to go.
Block Configuration
- If you go to
admin/structure/blockthen click on place the block. - Search for
Current Time Zoneand select the respective region. - Please make the machine name to
current_locationto get the fields from twig file. - Click the "Save block" button.
- Arrange the block according to the required weight.
- Click the "Save blocks" and you are good to go.