WIP: Make today really today. #1378

Closed
kergma-lw wants to merge 1 commits from kergma-lw/frontend:main into main
1 changed files with 3 additions and 2 deletions

View File

@ -247,7 +247,8 @@ export default {
showTodaysTasks() {
const d = new Date()
this.cStartDate = new Date()
this.cEndDate = new Date(d.setDate(d.getDate() + 1))
this.cEndDate = new Date(d.setDate(d.getDate()))
this.cEndDate.setHours(23,59,0,0)
Review

Not sure, but shouldn't this be:

this.cEndDate.setHours(23,59,59,999)

See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setHours#parameters

Not sure, but shouldn't this be: ```js this.cEndDate.setHours(23,59,59,999) ``` See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setHours#parameters
this.showOverdue = true
this.setDate()
},
@ -278,4 +279,4 @@ h3 {
.llama-cool {
margin-top: 2rem;
}
</style>
</style>