now
This commit is contained in:
@@ -134,12 +134,12 @@ const handleLoad = async () => {
|
|||||||
events = [];
|
events = [];
|
||||||
|
|
||||||
if (Object.keys(query).length == 0) {
|
if (Object.keys(query).length == 0) {
|
||||||
const now = new Date();
|
// const now = new Date();
|
||||||
const startingDate = new Date(now.setDate(now.getDate() - 14));
|
// const startingDate = new Date(now.setDate(now.getDate() - 14));
|
||||||
|
|
||||||
query["end_at"] =
|
query["end_at"] =
|
||||||
">" +
|
">" +
|
||||||
new SMDate(startingDate).format("yyyy/MM/dd HH:mm:ss", {
|
new SMDate("now").format("yyyy/MM/dd HH:mm:ss", {
|
||||||
utc: true,
|
utc: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user