-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
There is an issue with the isToday function
The problem
💻 Code demonstrating the problem
import { UTCDate } from '@date-fns/utc';
import { isToday } from 'date-fns';
isToday(new UTCDate());
//=> falseDemo: https://stackblitz.com/edit/stackblitz-starters-bdluhl?file=src%2Fmain.ts
🙁 Actual behavior
new UTCDate() is not today
🙂 Expected behavior
new UTCDate() is today
Debug information
- date-fns version: 3.4.0 (@date-fns/utc: 1.2.0)
- Browser/Node.js version: Edge
- Your timezone: UTC+1
- Your current time: 15:00
fturmel