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

When date is changed before daylight savings, time does not update to be standard time #861

Open
illegalnumbers opened this issue May 25, 2023 · 0 comments

Comments

@illegalnumbers
Copy link

I'm Submitting a ...

[ x ] Bug report
[ ] Feature request
[ x ] Support request

Steps to Reproduce

  • Using version 4.8.0
  • Use momentTimeZone do
import momentTimezone from "moment-timezone/moment-timezone";
momentTimezone.tz.add("America/Los_Angeles|PST PDT|80 70|0101|1Lzm0 1zb0 Op0");
  • load the calendar
          <Datetime
            displayTimeZone="America/Los_Angeles"
            timeFormat={"h:mm a z"}
            onChange={dateChanged}
            value={startDate}
          />
  • When you change the date on the calendar from a date in daylight savings to one not in daylight savings the calendar wont use the PST time zone over the PDT time zone

Expected Results

Going from PDT dates to PST dates are respected

Actual Results

They are not, the time picker stays in PDT

Minimal Reproduction of the Problem

See above

Other Information (e.g. stacktraces, related issues, suggestions how to fix)

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

No branches or pull requests

1 participant