Use noon instead of midnight to get date range
This commit is contained in:
@@ -214,7 +214,7 @@ function LoadingMoreView(props) {
|
|||||||
|
|
||||||
function getTodayAndPreviousDays(n) {
|
function getTodayAndPreviousDays(n) {
|
||||||
const today = new Date()
|
const today = new Date()
|
||||||
today.setHours(0)
|
today.setHours(12)
|
||||||
today.setMinutes(0)
|
today.setMinutes(0)
|
||||||
today.setSeconds(0)
|
today.setSeconds(0)
|
||||||
today.setMilliseconds(0)
|
today.setMilliseconds(0)
|
||||||
|
|||||||
Reference in New Issue
Block a user