arqex/react-datetime

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

illegalnumbers opened this issue · 0 comments

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)