change packages & change data in weekly day & add fields to modal add & remove validation from login page

This commit is contained in:
Ehsan
2025-07-13 00:47:06 +03:30
parent c6e2657e45
commit 97802a9fdf
14 changed files with 207 additions and 89 deletions
+17
View File
@@ -237,3 +237,20 @@ export const changeDateType = (data, toTimeStamp) => {
}
return newData;
};
export const removeTokenHead = {
headers: {
Authorization: "",
},
};
export const dateToTimestamp = (date) => {
const gregorianMoment = date.clone().locale("fa");
// Get the Unix timestamp in milliseconds
const unixTimestamp = gregorianMoment.valueOf();
const inSeconde = unixTimestamp / 1000;
return inSeconde;
};