Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Webform Datetime 24h

Security covered Under active development 10 sites

Part of the Webform ecosystem · 217 projects

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

Drupal 10–11

Ask your assistant about Webform Datetime 24h

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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 month ago
Releases (12 mo)
1 ▼ from 5
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP 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