title: rrule.js - Recurrence series changes time of day in time zone after Daylight Savings
body: <p>I have what seems like a very common use case: I want to have a recurring event that occurs at the same time each day in a specific time zone (in the example below, 6:00 AM in the America/Denver time zone). I want this to recur at the same time of day after a change in Daylight Savings as before. Right now, it is changing by one hour after Daylight Savings, which seems to indicate that Daylight Savings is not being accounted for when the recurring datetimes are generated.</p>
  <p>I have tried various configurations for the rrule as indicated in the documentation <a href="https://github.com/jakubroztocil/rrule#important-use-utc-dates" rel="nofollow noreferrer">here</a> and <a href="https://github.com/jakubroztocil/rrule#timezone-support" rel="nofollow noreferrer">here</a>. It says the time of day should be the same across Daylight Savings, but that is not what I am seeing.</p>
  <h2>Code sample</h2>
  <pre><code>const rrule = new RRule({
    freq: RRule.DAILY,
    dtstart: new Date(Date.UTC(2022, 7, 18, 12, 0, 0)),
    // tzid: 'America/Denver', // output is the same whether this is included or not
  })
  const datetimes = rrule.between(
    new Date('2022-10-31'),
    new Date('2022-11-10')
  )
  </code></pre>
  <p>Try out the <a href="https://codesandbox.io/s/rrule-incorrect-times-after-daylight-savings-z0gfii?file=/src/index.js" rel="nofollow noreferrer">CodeSandbox</a>. Should get similar results as long as you are in a time zone that has Daylight Savings and the <code>between</code> range includes a change in Daylight Savings.</p>
  <h3>Expected output</h3>
  <p>The time of day in America/Denver time zone should not change after Daylight Savings (i.e. recurrence should account for Daylight Savings):</p>
  <pre><code>Mon Oct 31 2022 06:00:00 GMT-0600 (Mountain Daylight Time)
  Tue Nov 01 2022 06:00:00 GMT-0600 (Mountain Daylight Time)
  Wed Nov 02 2022 06:00:00 GMT-0600 (Mountain Daylight Time)
  Thu Nov 03 2022 06:00:00 GMT-0600 (Mountain Daylight Time)
  Fri Nov 04 2022 06:00:00 GMT-0600 (Mountain Daylight Time)
  Sat Nov 05 2022 06:00:00 GMT-0600 (Mountain Daylight Time)
  Sun Nov 06 2022 06:00:00 GMT-0700 (Mountain Standard Time) &lt;-- Daylight savings change
  Mon Nov 07 2022 06:00:00 GMT-0700 (Mountain Standard Time)
  Tue Nov 08 2022 06:00:00 GMT-0700 (Mountain Standard Time)
  Wed Nov 09 2022 06:00:00 GMT-0700 (Mountain Standard Time)
                  ^^
  </code></pre>
  <h3>Actual output</h3>
  <p>The time of day in America/Denver time zone is changing from 6:00 to 5:00:</p>
  <pre><code>Mon Oct 31 2022 06:00:00 GMT-0600 (Mountain Daylight Time)
  Tue Nov 01 2022 06:00:00 GMT-0600 (Mountain Daylight Time)
  Wed Nov 02 2022 06:00:00 GMT-0600 (Mountain Daylight Time)
  Thu Nov 03 2022 06:00:00 GMT-0600 (Mountain Daylight Time)
  Fri Nov 04 2022 06:00:00 GMT-0600 (Mountain Daylight Time)
  Sat Nov 05 2022 06:00:00 GMT-0600 (Mountain Daylight Time)
  Sun Nov 06 2022 05:00:00 GMT-0700 (Mountain Standard Time) &lt;-- Daylight savings change
  Mon Nov 07 2022 05:00:00 GMT-0700 (Mountain Standard Time)
  Tue Nov 08 2022 05:00:00 GMT-0700 (Mountain Standard Time)
  Wed Nov 09 2022 05:00:00 GMT-0700 (Mountain Standard Time)
                  ^^
  </code></pre>
  <p>I've opened an <a href="https://github.com/jakubroztocil/rrule/issues/550" rel="nofollow noreferrer">issue</a> for this on GitHub, but I'm wondering if I'm just missing something. It seems like a common use case, so I would think I'd be able to find something out there about it. I did find a couple of SO questions about it <a href="https://stackoverflow.com/questions/55208658/rrules-and-dayllght-savings">here</a> and <a href="https://stackoverflow.com/questions/38771638/how-to-specify-an-rrule-taking-into-account-daylight-savings-time">here</a>, but I'm already applying the solutions suggested.</p>
  <p>Is this an actual bug in rrule or am I just missing something?</p>