#3575317 Use getCurrentTime() to avoid frozen REQUEST_TIME in server mode.

Drupal captures REQUEST_TIME at process startup. In long-running server mode (drush mcp-tools:serve), this timestamp remains frozen, causing all created entities to have stale timestamps. Inject TimeInterface and use getCurrentTime() instead of getRequestTime().

Affected services:

  • mcp_tools_content: ContentService.createContent()
  • mcp_tools_media: MediaService.uploadFile() and createMedia()
  • mcp_tools_batch: BatchService.createMultipleContent()
  • mcp_tools_structure: TaxonomyManagementService.createTerm()

All services.yml files updated with @datetime.time dependency injection.

Co-Authored-By: Claude noreply@anthropic.com

Closes #3575317

Merge request reports

Loading