drupal-eca-recipe / eca_lib_0031
Working with dates and time
3.1.2
2025-08-10 14:06 UTC
Requires
- drupal/core: >=11.2
- drupal/eca: ^3
- drupal/eca_tamper: *
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