Skip to content

Primereact Calendar component always convert the date to browser's timezone #4937

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

Closed
Vikas175Prasad opened this issue Sep 20, 2023 · 1 comment
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted

Comments

@Vikas175Prasad
Copy link

Describe the bug

Primereact Calendar component always convert the date of any fixed timezone to browser's timezone. It should show the date in the original timezone only and should not convert it to browser's timezone when we are assigning a fixed value to the component.

Reproducer

https://stackblitz.com/edit/stackblitz-starters-8uoj3f?file=src%2FApp.tsx

PrimeReact version

9.6.2

React version

17.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

  1. Create Calendar component
  2. Assign date string of any fixed timezone (for e.g., Europe/London) to value property of the component.

Expected behavior

The calendar should display the date in original timezone and should not automatically convert it to browser's/client timezone.

@Vikas175Prasad Vikas175Prasad added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 20, 2023
@melloware
Copy link
Member

Duplicate of #4128

@melloware melloware marked this as a duplicate of #4128 Sep 20, 2023
@melloware melloware closed this as not planned Won't fix, can't repro, duplicate, stale Sep 20, 2023
@melloware melloware added Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted
Projects
None yet
Development

No branches or pull requests

2 participants