aboutsummaryrefslogtreecommitdiff
path: root/src/modules/git/index.ts
diff options
context:
space:
mode:
authorShinigami <[email protected]>2022-12-01 09:40:04 +0100
committerGitHub <[email protected]>2022-12-01 09:40:04 +0100
commit0cec57153d9e97b609714e8d6a96e2ccfcedfc11 (patch)
treea866a48eb45be0a753f99bfca619716a59c6db76 /src/modules/git/index.ts
parentc78cc3737e7bbca690449fa1e037f408dbbd9613 (diff)
downloadfaker-0cec57153d9e97b609714e8d6a96e2ccfcedfc11.tar.xz
faker-0cec57153d9e97b609714e8d6a96e2ccfcedfc11.zip
refactor(date)!: unify signatures (#1534)
Co-authored-by: Eric Cheng <[email protected]>
Diffstat (limited to 'src/modules/git/index.ts')
-rw-r--r--src/modules/git/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/git/index.ts b/src/modules/git/index.ts
index 2ea65063..31df2518 100644
--- a/src/modules/git/index.ts
+++ b/src/modules/git/index.ts
@@ -136,7 +136,7 @@ export class GitModule {
const { refDate } = options;
const dateParts = GIT_DATE_FORMAT_BASE.format(
- this.faker.date.recent(1, refDate)
+ this.faker.date.recent({ days: 1, refDate })
)
.replace(/,/g, '')
.split(' ');