Authored on calendar view throwing errors

Created on 19 July 2016, almost 9 years ago
Updated 29 April 2025, 13 days ago

Found by audriusb in #2492011: Port Calendar module to Drupal 8

Any ideas why I need to change

$item_start_date = \DateTime::createFromFormat($storage_format, $row->{$info['query_name']});
$item_end_date = \DateTime::createFromFormat($storage_format, $row->{$info['query_name']});
in /modules/contrib/calendar/src/Plugin/views/row/Calendar.php

to

$item_start_date = \DateTime::createFromFormat('U', $row->{$info['query_name']});
$item_end_date = \DateTime::createFromFormat('U', $row->{$info['query_name']});
when working with "authored on" date field? field stores timestamp format and seems like I can't use anything else other than 'U' format ... How can I change $storage_format format?

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇧🇪Belgium geertvd

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.

  • 🇨🇦Canada joelpittet Vancouver

    Things have changed, I will close this as outdated, but if something from this is still important please let me know.

Production build 0.71.5 2024