Fix first day of week not depending on locale
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
id: 'begins-on-field',
|
||||
'aria-next-label': $t('Next month'),
|
||||
'aria-previous-label': $t('Previous month'),
|
||||
'first-day-of-week': firstDayOfWeek,
|
||||
}"
|
||||
>
|
||||
</b-datetimepicker>
|
||||
@@ -73,6 +74,7 @@
|
||||
id: 'ends-on-field',
|
||||
'aria-next-label': $t('Next month'),
|
||||
'aria-previous-label': $t('Previous month'),
|
||||
'first-day-of-week': firstDayOfWeek,
|
||||
}"
|
||||
>
|
||||
</b-datetimepicker>
|
||||
@@ -1325,5 +1327,9 @@ export default class EditEvent extends Vue {
|
||||
isOnline,
|
||||
};
|
||||
}
|
||||
|
||||
get firstDayOfWeek(): number {
|
||||
return this.$dateFnsLocale?.options?.weekStartsOn || 0;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user