refactor: updated dates format displayed in admin dashboard (#4605)
This commit is contained in:
parent
e30a6c9db5
commit
5ad998f54a
4 changed files with 4 additions and 4 deletions
|
|
@ -131,7 +131,7 @@ const emit = defineEmits<{
|
|||
|
||||
// Get Proper Date Formats
|
||||
const getCreatedDateAndTime = (date: string) =>
|
||||
format(new Date(date), 'd-MM-yyyy hh:mm a');
|
||||
format(new Date(date), 'd-MMMM-yyyy , hh:mm a');
|
||||
|
||||
// User Info
|
||||
const { uid, displayName, email, createdOn, lastActiveOn } = props.user;
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ const props = defineProps<{
|
|||
}>();
|
||||
|
||||
// Get Desired Date Formats
|
||||
const getCreatedDate = (date: string) => format(new Date(date), 'dd-MM-yyyy');
|
||||
const getCreatedDate = (date: string) => format(new Date(date), 'dd-MMMM-yyyy');
|
||||
const getCreatedTime = (date: string) => format(new Date(date), 'hh:mm a');
|
||||
|
||||
//Fetch Shared Requests
|
||||
|
|
|
|||
|
|
@ -290,7 +290,7 @@ const t = useI18n();
|
|||
const toast = useToast();
|
||||
|
||||
// Time and Date Helpers
|
||||
const getCreatedDate = (date: string) => format(new Date(date), 'dd-MM-yyyy');
|
||||
const getCreatedDate = (date: string) => format(new Date(date), 'dd-MMMM-yyyy');
|
||||
const getCreatedTime = (date: string) => format(new Date(date), 'hh:mm a');
|
||||
const getLastActiveOn = (date: string | null) =>
|
||||
date ? useTimeAgo(date).value : t('users.not_available');
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ const breakpoints = useBreakpoints(breakpointsTailwind);
|
|||
const lgAndLarger = breakpoints.greater('lg');
|
||||
|
||||
// Get Proper Date Formats
|
||||
const getCreatedDate = (date: string) => format(new Date(date), 'dd-MM-yyyy');
|
||||
const getCreatedDate = (date: string) => format(new Date(date), 'dd-MMMM-yyyy');
|
||||
const getCreatedTime = (date: string) => format(new Date(date), 'hh:mm a');
|
||||
|
||||
// Get Invited Users
|
||||
|
|
|
|||
Loading…
Reference in a new issue