Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / datetime / src / Plugin / Field / FieldType / DateTimeItem.php
index f5c06e6e5dd7a069bd0ca2c047365f2a36f64d42..330782b0d69460701cb3e0bcfe259ed289e7fb10 100644 (file)
@@ -17,7 +17,8 @@ use Drupal\Core\Field\FieldItemBase;
  *   description = @Translation("Create and store date values."),
  *   default_widget = "datetime_default",
  *   default_formatter = "datetime_default",
- *   list_class = "\Drupal\datetime\Plugin\Field\FieldType\DateTimeFieldItemList"
+ *   list_class = "\Drupal\datetime\Plugin\Field\FieldType\DateTimeFieldItemList",
+ *   constraints = {"DateTimeFormat" = {}}
  * )
  */
 class DateTimeItem extends FieldItemBase {