(date)
| 29 | return `${yyyy}-${MM}-${dd}T${hh}:${mm}:${ss}${sign}${offH}:${offM}`; |
| 30 | }; |
| 31 | const getCommitWindow = (date) => { |
| 32 | const end = new Date(`${date}T23:00:00${LOCAL_TZ_OFFSET}`); |
| 33 | const start = new Date(end.getTime() - 24 * 60 * 60 * 1000); |
| 34 | |
| 35 | return { |
| 36 | since: formatDateTimeWithOffset(start, LOCAL_TZ_OFFSET_MINUTES), |
| 37 | until: formatDateTimeWithOffset(end, LOCAL_TZ_OFFSET_MINUTES) |
| 38 | }; |
| 39 | }; |
| 40 | const TARGET_DATE = process.env.TARGET_DATE || formatDateInTimeZone(new Date(), LOCAL_TZ); |
| 41 | const CHECKOUT_SUCCESS = process.env.CHECKOUT_SUCCESS === 'true'; |
| 42 |
no test coverage detected