Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typeof - date (ex: 01/01/2024) field decrements from the selected date #20321

Open
SSG-Adam opened this issue May 16, 2024 · 0 comments
Open
Assignees
Labels
issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: core:content-manager Source is core/content-manager package status: pending reproduction Waiting for free time to reproduce the issue, or more information version: 5

Comments

@SSG-Adam
Copy link

Bug report

Required System information

Node.js version: v20.6.1
NPM version: 9.8.1
Strapi version: 5.0.0-beta.3
Database: sqlite
Operating system: Ubuntu 22.04.4 LTS
Is your project Javascript or Typescript: TypeScript

Describe the bug

A user selects a date through the date picker which is a field in Strapi.
When the user selects a date and proceeds to the next field or just clicks outside of the calendar field the date decrements by one.
For example: If a user were to select 2nd March 2019 on the date picker and proceeds to click outside the calendar or another field the date then decrements by one count and displays 1st March 2019.

Steps to reproduce the behavior

  1. Create a Collection Type with any name
  2. Add a "Date" field to the Collection Type.
  3. Navigate to Content Manager and select a date through the newly created "Date" field for the Collection Type.
  4. User selects 5th Feb. 2020
  5. User clicks or tabs to the next field
  6. The date is now decremented by one and now displays 4th Feb. 2020.

Expected behavior

When a user chooses a date and clicks on it then that date should remain and not be decremented or incremented.

@derrickmehaffy derrickmehaffy added issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: core:content-manager Source is core/content-manager package status: pending reproduction Waiting for free time to reproduce the issue, or more information version: 5 labels May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: core:content-manager Source is core/content-manager package status: pending reproduction Waiting for free time to reproduce the issue, or more information version: 5
Projects
Status: To be reviewed
Status: To triage
Status: To review
Development

No branches or pull requests

3 participants