Compare commits

..

No commits in common. "814c17d4c90bee178578bd622cc6d1e3683c8638" and "d00d4ac69201d03576e702d9bae1c5dca44b7282" have entirely different histories.

View file

@ -1252,15 +1252,7 @@ export const useCounterMixin = defineStore("mixin", () => {
// กรณีมีเฉพาะ date
function convertDateToAPI(date: Date | null) {
if (!date) return null;
const parsedDate = new Date(date);
if (parsedDate) {
return format(parsedDate, "yyyy-MM-dd");
} else {
return null;
}
return date ? format(date, "yyyy-MM-dd") : null;
}
// กรณี datetime