mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 12:18:45 -05:00
use proper local format for all date pickers
This commit is contained in:
@@ -28,7 +28,6 @@
|
||||
<v-date-input
|
||||
v-model="dateRangeValue"
|
||||
@update:modelValue="updateDate()"
|
||||
:display-format="(date: Date) => DateTime.fromJSDate(date).toLocaleString()"
|
||||
:first-day-of-week="useUserPreferenceStore().deviceSettings.mealplan_startingDayOfWeek"
|
||||
:show-week="useUserPreferenceStore().deviceSettings.mealplan_displayWeekNumbers"
|
||||
:label="$t('Date')"
|
||||
|
||||
@@ -4,6 +4,7 @@ import {aliases, fa} from 'vuetify/iconsets/fa'
|
||||
|
||||
// Composables
|
||||
import {createVuetify} from 'vuetify'
|
||||
import {DateTime} from "luxon";
|
||||
|
||||
// https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides
|
||||
export default createVuetify({
|
||||
@@ -19,6 +20,10 @@ export default createVuetify({
|
||||
// limiting max width of base container so UIs dont become too wide
|
||||
VContainer: {
|
||||
maxWidth: '1400px'
|
||||
},
|
||||
// always localize the date display of DateInputs
|
||||
VDateInput: {
|
||||
displayFormat : (date: Date) => DateTime.fromJSDate(date).toLocaleString()
|
||||
}
|
||||
},
|
||||
theme: {
|
||||
|
||||
Reference in New Issue
Block a user