refactor: updated dates format displayed in admin dashboard (#4605)

This commit is contained in:
Joel Jacob Stephen 2024-12-16 02:43:21 -06:00 committed by jamesgeorge007
parent e30a6c9db5
commit 5ad998f54a
4 changed files with 4 additions and 4 deletions

View file

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

View file

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

View file

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

View file

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