-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🟢 | Statements | 83.27% (+0.02% 🔼) |
846/1016 |
🟡 | Branches | 68.31% | 222/325 |
🟡 | Functions | 75.46% | 163/216 |
🟢 | Lines | 82.81% (+0.02% 🔼) |
795/960 |
Test suite run success
168 tests passing in 54 suites.
Report generated by 🧪jest coverage report action from 706dd8d
|
||
// Create a new Date object using the local time | ||
const date = new Date(year, month - 1, day); | ||
|
||
const options: Intl.DateTimeFormatOptions = { | ||
year: "numeric", | ||
month: "long", |
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.
this is the format date function we call from SearchResultListItem
- it needs to be updated to be called from the local time instead of just the UTC time (which is I think what happens when you just do new Date(dateStr)
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.
This subtracts 1 from the 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.
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.
@andycochran I think it's ready for review now
Fixes #56 - Update the date creation to the parsed year/month/day so it creates the `Date` object using the local time - this may prevent any type of rounding - Add some tests to ensure the right dates are showing up on search
Fixes #56 - Update the date creation to the parsed year/month/day so it creates the `Date` object using the local time - this may prevent any type of rounding - Add some tests to ensure the right dates are showing up on search
Fixes #56 - Update the date creation to the parsed year/month/day so it creates the `Date` object using the local time - this may prevent any type of rounding - Add some tests to ensure the right dates are showing up on search
Summary
Fixes #56
Time to review: 2 min
Changes proposed
Date
object using the local time - this may prevent any type of rounding