Skip to content

Commit

Permalink
When adding a date, time should be "00:00"
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Mar 3, 2025
1 parent 8b4d2f1 commit ed6be78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/js/components/fieldtypes/DateFieldtype.vue
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,10 @@ export default {
addDate() {
let now = new Date();
if (! this.config.time_enabled) {
now.setHours(0, 0, 0, 0);
}
let date =
now.getFullYear() +
'-' +
Expand Down

0 comments on commit ed6be78

Please sign in to comment.