Resolve date format error in sample content

Created on 19 May 2021, about 3 years ago
Updated 13 February 2023, over 1 year ago

Problem/Motivation

The sample content in Sector Events fails with an error message on module enable.

Steps to reproduce

www-data@ad910190dfec:/app$ composer require drupal/sector_events:dev-3.0.x drupal/geolocation:^3.0 drupal/address:^1.0
./composer.json has been updated
Running composer update drupal/sector_events drupal/geolocation drupal/address
Gathering patches from patch file.
> Sector\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
  - Locking drupal/sector_events (dev-3.0.x b280c1b)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Syncing drupal/sector_events (dev-3.0.x b280c1b) into cache
Gathering patches from patch file.
Gathering patches for dependencies. This might take a minute.
  - Installing drupal/sector_events (dev-3.0.x b280c1b): Cloning b280c1b845 from cache
  - Applying patches for drupal/sector_events
    https://git.drupalcode.org/project/sector_events/-/merge_requests/1.diff (Issue #3155722: Upgrade to drupal/geolocation:^3.0)

Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Generating autoload files
Warning: Ambiguous class resolution, "Sector\composer\ScriptHandler" was found 2x: in "/app/scripts/composer/ScriptHandler.php" and "/app/web/profiles/contrib/sector-distribution/scripts/composer/ScriptHandler.php", the first will be used.
91 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> Sector\composer\ScriptHandler::createRequiredFiles
www-data@ad910190dfec:/app$ drush -y en sector_events

In DateTimeNormalizer.php line 117:
                                                                                                                                  
  The specified date "2016-09-01T14:00:00" is not in an accepted format: "Y-m-d\TH:i:sP" (RFC 3339), "Y-m-d\TH:i:sO" (ISO 8601).

Proposed resolution

- Insert a Z for timezone :)

Remaining tasks

- Submit MR based on https://git.drupalcode.org/project/sector_events/-/merge_requests/1/diff...

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡³πŸ‡ΏNew Zealand xurizaemon Ōtepoti, Aotearoa 🏝

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024