Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Webform Datetime 24h

9 sites Security covered Drupal 10–11 Webform ecosystem
View on drupal.org

This module ensures that time and datetime fields in Webform elements consistently use 24-hour formatting, which is particularly useful for multilingual websites. It automatically adjusts the time display based on the selected language without requiring changes to individual webform configurations.

Adds language-aware 24-hour time formatting to Webform time and datetime elements, enhancing consistency on multilingual Drupal forms. Complies to language requirements in various bilingual and multilingual requirements. This functionality is configurable per language so that you can enable 24h time for specific language versions of your webforms.

Features

Webform Datetime 24h is a lightweight utility module for Drupal that enforces 24-hour time formatting on webform_time, time, and datetime elements rendered by Webform. It works by altering Webform submission forms based on the current interface language, allowing you to configure per-language enforcement of 24-hour time display. This is especially useful for multilingual sites where 12-hour formats (AM/PM) are inappropriate.

The module integrates cleanly with Webform and webform_jqueryui_datepicker to ensure time inputs are localized in a way that respects user expectations. Ideal for global or bilingual deployments, it requires no changes to individual Webform elements—just install, enable, and configure per language.

Post-Installation

Once installed, Webform Datetime 24h adds a configuration screen that allows you to enable 24-hour time formatting per language. There are no new content types, no fields to manage, and no manual changes needed to your Webforms.

Configuration Steps:

  1. Go to Configuration → User Interface → Webform 24h Time Format Or visit: /admin/config/user-interface/webform-datetime-24h
  2. You'll see a list of all languages enabled on your site.
  3. For each language, check the box to enable 24-hour time formatting in Webforms.
  4. Save the configuration.

What Happens Next:

  • The module automatically scans Webform submission forms for any webform_time, datetime, or time elements.
  • If the current page language matches one you've enabled in settings, the module:
  • Sets the time format to HH:mm (24-hour).
  • Disables AM/PM toggles.
  • Integrates with webform_jqueryui_datepicker if installed, ensuring consistency across browsers.

Additional Requirements

  • Webform
  • jquery_ui_datepicker
  • webform_jqueryui_datepicker (included as a sub module in the webform module)

Similar projects

TBD

Supporting this Module

Please report issues and provide helpful steps to reproduce issues and enough background information that will help us understand how to assist you with the setup and support the module.

Community Documentation

The module comes with a README.md

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
Apr 2025
Latest release
1 week ago
Releases (12 mo)
1 ▼ from 5
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.0.0 Stable 10–11 Aug 19, 2026
1.0.0-rc4 Pre-release 10–11 Apr 17, 2025
1.0.0-rc3 Pre-release 10–11 Apr 16, 2025
1.0.0-rc2 Pre-release 10–11 Apr 16, 2025
1.0.0-rc1 Pre-release 10–11 Apr 15, 2025
1.0.x-dev Dev 10–11 Apr 15, 2025