drupal-eca-recipe/eca_lib_0031

Working with dates and time

Installs: 32

Dependents: 0

Suggesters: 0

Security: 0

Type:drupal-recipe

3.1.2 2025-08-10 14:06 UTC

This package is auto-updated.

Last update: 2025-08-10 14:06:36 UTC


README

ID: eca_lib_0031

This model works with a date and time value from a node field and does various things to it: outputting in different formats, adding some time range, changing timezone, etc.

Especially the timezone feature requires a patch to the tamper module.

The creation of this module was recorded and the video with additional explanations can be watched here.

Installation

## Import recipe
composer require drupal-eca-recipe/eca_lib_0031

# Apply recipe with Drush (requires version 13 or later):
drush recipe ../recipes/{{ rawid }}

# Apply recipe without Drush:
cd web && php core/scripts/drupal recipe ../recipes/eca_lib_0031

# Rebuilding caches is optional, sometimes required:
drush cr