From 6fce510a0aba8de69c10639261ff3d3e94e7189e Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 1 Nov 2022 08:03:47 +0100 Subject: [PATCH] Client - date formatting refactoring (WIP) --- .../components/Administration/AdminUsers.vue | 10 ++-- .../User/ProfileDisplay/UserInfos.vue | 9 +++- .../User/ProfileEdition/UserInfosEdition.vue | 11 ++-- .../src/components/User/UserApps/UserApp.vue | 10 ++-- .../components/User/UserApps/UserAppsList.vue | 10 ++-- .../src/components/Workout/WorkoutCard.vue | 9 ++-- .../src/components/Workouts/WorkoutsList.vue | 10 ++-- fittrackee_client/src/utils/dates.ts | 11 ++++ .../tests/unit/utils/dates.spec.ts | 50 +++++++++++++++++++ 9 files changed, 99 insertions(+), 31 deletions(-) diff --git a/fittrackee_client/src/components/Administration/AdminUsers.vue b/fittrackee_client/src/components/Administration/AdminUsers.vue index 5f319475..b6710d1f 100644 --- a/fittrackee_client/src/components/Administration/AdminUsers.vue +++ b/fittrackee_client/src/components/Administration/AdminUsers.vue @@ -62,9 +62,10 @@ {{ $t('user.PROFILE.REGISTRATION_DATE') }} {{ - format( - getDateWithTZ(user.created_at, authUser.timezone), - `${authUser.date_format} HH:mm` + formatDate( + user.created_at, + authUser.timezone, + authUser.date_format ) }} @@ -130,7 +131,6 @@