(datePart: string)
| 22 | } |
| 23 | |
| 24 | function createUTCDateFromStorageDate(datePart: string): Date | null { |
| 25 | const match = /^(\d{4})-(\d{2})-(\d{2})$/.exec(datePart); |
| 26 | if (!match) { |
| 27 | return null; |
| 28 | } |
| 29 | |
| 30 | const [, year, month, day] = match; |
| 31 | return new Date(Date.UTC(Number(year), Number(month) - 1, Number(day))); |
| 32 | } |
| 33 | |
| 34 | function getTodayTaskCardTargetDate(): Date { |
| 35 | const todayLocal = new Date(); |
no outgoing calls
no test coverage detected