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

tzScan returning change that's not between start and end dates #35

Open
cbejensen opened this issue Jan 8, 2025 · 0 comments
Open

tzScan returning change that's not between start and end dates #35

cbejensen opened this issue Jan 8, 2025 · 0 comments

Comments

@cbejensen
Copy link

I'm probably missing something, but I don't get why this change is being returned since it doesn't seem to fall in the specified range:

import { tzScan } from '@date-fns/tz';

const changes = tzScan('America/New_York', {
  start: new Date('2012-02-12T00:00:00Z'),
  end: new Date('2012-02-13T00:00:00Z'),
});

console.log(changes[0].date.toISOString()); // 2012-03-11T07:00:00.000Z ???

Stackblitz: https://stackblitz.com/edit/js-p6n4lkik?file=index.js

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