Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

The Current date and time module allows administrators to display a dynamic date and time block on their Drupal site, showcasing the current date and time based on the selected country's timezone. Users can easily configure and customize the displayed time format, ensuring accurate and localized time information for a global audience.

Features

The Current date and time module allows administrators to display a dynamic date and time block at any region on their Drupal site.
The module defines a custom block named "Zone Block."
The module includes a custom service (TimestampService) responsible for handling timestamp-related operations, such as formatting timestamps based on a specified date format and timezone.
The custom block provides a configuration form that allows administrators to set parameters such as the date and time format, country, and timezone.
If someone wants a functionality of date and time in their site then they can use this module easily.
The module introduces a custom service (TimestampService) that encapsulates timestamp-related operations. Developers can study this implementation as a reference for creating their own services.

Post-Installation

After installing the "Current date and time" module, likely by placing it in the modules/contrib directory of your Drupal installation and enabling it through the Drupal administration interface, the module becomes part of your Drupal site.
The module defines a custom block named "Zone Block." This block can be placed in regions of your Drupal theme through the Block Layout interface (admin/structure/block).
When you place the "Demo Block" in a region, you have the option to configure it by clicking on the "Configure" link for that block.
The block configuration form appears and allows you to set parameters such as:
Date and Time Format: The format in which the timestamp should be displayed.
Country: The country for which the timestamp should be displayed.
Timezone: The timezone for the selected country.
The module likely includes a custom service named TimestampService. This service is injected into the "Zone Block" through dependency injection.

Additional Requirements

This module appears to rely on standard Drupal core functionality and does not explicitly mention any additional dependencies on contributed modules, libraries, or external APIs.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Dec 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.0 Stable Dec 6, 2023
1.0.x-dev Dev Dec 5, 2023