Skip to content
This repository has been archived by the owner on Oct 15, 2023. It is now read-only.

Commit

Permalink
🐛 Tentative de fix de l’heure qui saute (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
ecnivtwelve committed Apr 11, 2023
2 parents d329839 + 0b9882d commit efdfe66
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/HomepageView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
MarkView: MarkView,
HomeworkItemView: HomeworkItemView,
serverError: false,
nextCoursStartTime: "00:00",
}
},
methods: {
Expand Down Expand Up @@ -201,6 +202,8 @@
return false;
}
this.nextCoursStartTime = lessonStart.toLocaleString('fr-FR', { hour: '2-digit', minute: '2-digit' })
// if less than 60 mins
if (mins < 60 && mins >= 0) {
if (mins > 1) {
Expand Down Expand Up @@ -636,7 +639,7 @@
:class="{ cancelled: cours.status.isCancelled, HasStatus: cours.hasStatus }">
<div slot="start" class="timeChip">
<IonChip>
{{ cours.time.start.toLocaleString('fr-FR', { hour: '2-digit', minute: '2-digit' }) }}
{{ nextCoursStartTime }}
</IonChip>
</div>
<ion-label :style="`--courseColor: ${cours.course.color};`">
Expand Down

0 comments on commit efdfe66

Please sign in to comment.