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