Skip to content

Conversation

@Rowan-Paul
Copy link
Contributor

No description provided.

@Rowan-Paul Rowan-Paul requested review from MaikaiMa and Copilot May 15, 2025 13:36
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue with creating new scheduler item dates by ensuring the correct date format is used.

  • Updates tsconfig.server.json with additional compiler options for Node compatibility.
  • Bumps dependency versions in package.json to align with new Strapi versions and updates the package manager setting.
  • Modifies the Scheduler component to convert dates to an ISO string format.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

File Description
tsconfig.server.json Added additional compiler options for module resolution and interoperability.
package.json Updated version numbers and dependency versions to ensure compatibility.
admin/src/components/Scheduler/index.tsx Changed date conversion from toDateString() to toISOString() to fix date creation.
Comments suppressed due to low confidence (1)

admin/src/components/Scheduler/index.tsx:33

  • [nitpick] The change to using toISOString() standardizes the date format; please verify that downstream components and API consumers expect dates in ISO format rather than human-readable strings.
const isoDate = value ? value.toISOString() : null;

@Rowan-Paul Rowan-Paul merged commit 55dfc59 into develop May 15, 2025
1 check passed
@Rowan-Paul Rowan-Paul deleted the fix/PGC-2328-creating-date branch May 15, 2025 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants