Problem/Motivation
The latest change is usually the timestamp of the revision. When I assign LAST-MODIFIED to the latest revision timestamp I get the following Warning message:
The content Dresdner Mathematisches Seminar konnte mit den folgenden Fehlern nicht validiert werden:
revision_timestamp.0.value: Dieser Wert sollte vom korrekten primitiven Datentyp sein.
Bitte überprüfen Sie die Zuordnungen.
Steps to reproduce
- Add a feed iCal type and with the association “LAST-MODIFIED” ⇒ “revision_timestamp”
- Add a feed with the public iCal url from a google calendar
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork feeds_ical-3358715
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3358715-last-modified-fix
changes, plain diff MR !16 /
changes, plain diff MR !12
- 2.x-dev
changes, plain diff MR !15 /
changes, plain diff MR !11
Comments
Comment #5
ben.hamelin@keinstein Did some work on this today, and have a fix that provides LAST-MODIFIED as a timestamp like Drupal expects. However, it's worth noting this Feeds issue: https://www.drupal.org/project/feeds/issues/3060308
Without a presave or postsave hook the default Drupal entity update handler is going to use the current time regardless of what you have in the feed. This fix is still needed to ensure we have a properly formatted timestamp for mapping.
Comment #6
ben.hamelinComment #8
ben.hamelinComment #14
ben.hamelinComment #15
ben.hamelin