fix SMDate() to SMDate("now")
This commit is contained in:
@@ -177,7 +177,9 @@ const handleLoad = async () => {
|
||||
limit: 3,
|
||||
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") {
|
||||
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({
|
||||
|
||||
@@ -144,8 +144,9 @@ const workshopDate = computed(() => {
|
||||
"h:mm aa"
|
||||
) +
|
||||
" - " +
|
||||
SMDate(event.value.end_at, { format: "ymd" }),
|
||||
format("h:mm aa"),
|
||||
new SMDate(event.value.end_at, { format: "ymd" }).format(
|
||||
"h:mm aa"
|
||||
),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -222,7 +223,6 @@ const handleLoad = async () => {
|
||||
|
||||
const handleLoadImage = async () => {
|
||||
try {
|
||||
console.log(event.value);
|
||||
const result = await api.get(`/media/${event.value.hero}`);
|
||||
const data = result.data as ApiMedia;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user