Skip to content

Commit

Permalink
fix: The Naive DateTime Picker was using the incorrect month token
Browse files Browse the repository at this point in the history
  • Loading branch information
staylorwr committed Dec 3, 2020
1 parent 4a34b6b commit 780146b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/src/components/Form/DateTime.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default {
if (this.naiveDateTime) {
const now = DateTime.local();
const dt = DateTime.fromISO(value).setZone(now.zoneName);
this.value = `${dt.toFormat('yyyy-M-dd')}T${dt.toFormat('TT')}`;
this.value = `${dt.toFormat('yyyy-MM-dd')}T${dt.toFormat('TT')}`;
return;
}
this.value = value;
Expand Down

0 comments on commit 780146b

Please sign in to comment.