fix SMDate() to SMDate("now")

This commit is contained in:
2023-02-24 22:18:32 +10:00
parent 93eb6da68d
commit 533fdab150
3 changed files with 8 additions and 5 deletions

View File

@@ -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,
}),
}, },
}); });

View File

@@ -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({

View File

@@ -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;