Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider ae062744 rédigé par Serge Bibauw's avatar Serge Bibauw
Parcourir les fichiers

fix(date): remove padding on hours & days

parent 439a71c4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -37,7 +37,7 @@ export function displayDate(date: Date): string {
const now = new Date();
const hours = date.getHours().toString().padStart(2, '0');
const hours = date.getHours().toString();
const minutes = date.getMinutes().toString().padStart(2, '0');
if (now.getDate() === date.getDate()) {
......@@ -64,7 +64,7 @@ export function displayTime(date: Date): string {
const now = new Date();
const hours = date.getHours().toString().padStart(2, '0');
const hours = date.getHours().toString();
const minutes = date.getMinutes().toString().padStart(2, '0');
if (
......@@ -75,7 +75,7 @@ export function displayTime(date: Date): string {
return hours + ':' + minutes;
}
const day = date.getDate().toString().padStart(2, '0');
const day = date.getDate().toString();
const month = getFullMonth(date.getMonth());
if (now.getFullYear() === date.getFullYear()) {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter