-
Notifications
You must be signed in to change notification settings - Fork 9.3k
fix: timezone dependent unit test fail when not on utc #15377
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
fix: timezone dependent unit test fail when not on utc #15377
Conversation
Someone is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link. |
Graphite Automations"Add community label" took an action on this PR • (06/08/24)1 label was added to this PR based on Keith Williams's automation. "Add consumer team as reviewer" took an action on this PR • (06/08/24)1 reviewer was added to this PR based on Keith Williams's automation. |
const dateFrom = dayjs().month(10).date(1).startOf("day"); | ||
const dateTo = dayjs().month(10).endOf("month"); | ||
const dateFrom = dayjs.utc().month(10).date(1).startOf("day"); | ||
const dateTo = dayjs.utc().month(10).endOf("month"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using dayjs.utc to avoid change of date ( incremented to next day )
while using dayjs.endOf in certain timezones
This PR is being marked as stale due to inactivity. |
Closing due to staleness. Please reopen if work continues! |
What does this PR do?
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
TZ=MST yarn test