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

Commit

Permalink
Update datetime.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkingshott authored Oct 24, 2023
1 parent 1a3236f commit 0a5f9e7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/datetime.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@

<!-- Options -->
<option :key="index"
:value="index + 1"
:value="index"
v-for="(month, index) in months"
:selected="(index + 1) === calendar.month">
:selected="index === calendar.month">

<!-- Text -->
{{ month }}
{{ months[index - 1] }}

</option>

Expand Down Expand Up @@ -301,7 +301,7 @@
hours : Array(24).fill('').map((v, i) => `${i}`.padStart(2, '0')),
limits : { minimum : DateTime.fromISO(this.minDate), maximum : DateTime.fromISO(this.maxDate) },
minutes : Array(60).fill('').map((v, i) => `${i}`.padStart(2, '0')),
months : Array(12).fill('').map((v, i) => new Intl.DateTimeFormat(this.locale, { month: 'short' }).format(new Date(Date.UTC(2021, (i)%12)))),
months : Array(12).fill('').map((v, i) => new Intl.DateTimeFormat(this.locale, { month: 'short' }).format(new Date(Date.UTC(2021, (i)%12, 20)))),
seconds : Array(60).fill('').map((v, i) => `${i}`.padStart(2, '0')),
selectors : { date : false, time : false },
value : null,
Expand Down Expand Up @@ -601,4 +601,4 @@
},
}
}
</script>
</script>

0 comments on commit 0a5f9e7

Please sign in to comment.