()
| 3 | |
| 4 | // Get current date as YYYYMMDDHHmm |
| 5 | function getCurrentDateAsNumber() { |
| 6 | const now = new Date(); |
| 7 | const year = now.getFullYear(); |
| 8 | const month = String(now.getMonth() + 1).padStart(2, "0"); |
| 9 | const day = String(now.getDate()).padStart(2, "0"); |
| 10 | const hours = String(now.getHours()).padStart(2, "0"); |
| 11 | const minutes = String(now.getMinutes()).padStart(2, "0"); |
| 12 | return parseInt(`${year}${month}${day}${hours}${minutes}`, 10); |
| 13 | } |
| 14 | |
| 15 | async function updateDatabaseVersion(filePath) { |
| 16 | try { |
no outgoing calls
no test coverage detected