fix SMDate() to SMDate("now")
This commit is contained in:
@@ -177,7 +177,9 @@ const handleLoad = async () => {
|
|||||||
limit: 3,
|
limit: 3,
|
||||||
end_at:
|
end_at:
|
||||||
">" +
|
">" +
|
||||||
new SMDate().format("yyyy-MM-dd HH:mm:ss", { utc: true }),
|
new SMDate("now").format("yyyy-MM-dd HH:mm:ss", {
|
||||||
|
utc: true,
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -119,7 +119,8 @@ const handleLoad = async () => {
|
|||||||
|
|
||||||
if (Object.keys(query).length == 1 && Object.keys(query)[0] == "limit") {
|
if (Object.keys(query).length == 1 && Object.keys(query)[0] == "limit") {
|
||||||
query["end_at"] =
|
query["end_at"] =
|
||||||
">" + new SMDate().format("yyyy/MM/dd HH:mm:ss", { utc: true });
|
">" +
|
||||||
|
new SMDate("now").format("yyyy/MM/dd HH:mm:ss", { utc: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
api.get({
|
api.get({
|
||||||
|
|||||||
@@ -144,8 +144,9 @@ const workshopDate = computed(() => {
|
|||||||
"h:mm aa"
|
"h:mm aa"
|
||||||
) +
|
) +
|
||||||
" - " +
|
" - " +
|
||||||
SMDate(event.value.end_at, { format: "ymd" }),
|
new SMDate(event.value.end_at, { format: "ymd" }).format(
|
||||||
format("h:mm aa"),
|
"h:mm aa"
|
||||||
|
),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -222,7 +223,6 @@ const handleLoad = async () => {
|
|||||||
|
|
||||||
const handleLoadImage = async () => {
|
const handleLoadImage = async () => {
|
||||||
try {
|
try {
|
||||||
console.log(event.value);
|
|
||||||
const result = await api.get(`/media/${event.value.hero}`);
|
const result = await api.get(`/media/${event.value.hero}`);
|
||||||
const data = result.data as ApiMedia;
|
const data = result.data as ApiMedia;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user