Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(VDatePicker): show correct week number for selected locale #20794

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

simon-tackstrand
Copy link

Description

Current getWeek implementation does not work for different locales.
Uses @date-io adapter to calculate week number.

resolves #20490, #20724

Requires @date-io version >= 3.2.0 for any project referencing vuetify

The previous getWeek implementation has been moved to the VuetifyDateAdapter, meaning the bug will still exist for those not using any @date-io implementation.

Markup:

<template>
  <v-app>
    <v-container>
      <v-row>
        <v-col cols="12">
          <div style="height: 600px">
            <v-locale-provider locale="sv">
              <v-date-picker show-week />
            </v-locale-provider>
          </div>
        </v-col>
      </v-row>
    </v-container>
  </v-app>
</template>

<script>
  export default {
    name: 'Playground',
    setup () {
      return {
        //
      }
    },
  }
</script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report][3.6.7] Wrong calculation of the calendar week in date composable
1 participant