single service + 404 page and 500 page
This commit is contained in:
@@ -76,6 +76,7 @@ export function toJalaliDate(
|
||||
const parsedDate = new Date(date);
|
||||
|
||||
if (isNaN(parsedDate.getTime())) {
|
||||
return "";
|
||||
throw new Error("Invalid date provided to toJalaliDate");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user