Skip to content

Commit

Permalink
Option to use plain dates in format
Browse files Browse the repository at this point in the history
  • Loading branch information
cavis committed Dec 4, 2023
1 parent 3c558a6 commit d8aa212
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/make_copies.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,18 @@ module.exports = async function main(
/%RANGE_START_ISO/g,
config.inclusiveRangeStart.toISOString()
)
.replace(
/%RANGE_START_DATE_ISO/g,
config.inclusiveRangeStart.toISOString().split("T")[0]
)
.replace(
/%RANGE_END_ISO/g,
config.exclusiveRangeEnd.toISOString()
)
.replace(
/%RANGE_END_DATE_ISO/g,
config.exclusiveRangeEnd.toISOString().split("T")[0]
)
.replace(/%TYPE/g, extractionType)
.replace(/%REQUEST_ID/g, config.requestId)
.replace(/%REQUEST_TIME/g, +config.requestTime)
Expand Down

0 comments on commit d8aa212

Please sign in to comment.