diff options
| author | Matthew Bergman <[email protected]> | 2014-07-22 16:11:34 -0400 |
|---|---|---|
| committer | Matthew Bergman <[email protected]> | 2014-07-22 16:11:34 -0400 |
| commit | a4f7954e899dab13f73c14647d74a93ef7b6eb8f (patch) | |
| tree | 898cd7cb44fcd42bc3bde0d71a964ce7e663fde0 /lib | |
| parent | daa95b3a4f3eb5131970271be3820ddb45d30022 (diff) | |
| parent | 8b894a08c89ae803bbd3c2a9721ff859fae13ea5 (diff) | |
| download | faker-a4f7954e899dab13f73c14647d74a93ef7b6eb8f.tar.xz faker-a4f7954e899dab13f73c14647d74a93ef7b6eb8f.zip | |
Merge pull request #89 from edshadi/fix-date-recent-bug
fixed date.recent() bug
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/date.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/date.js b/lib/date.js index 795e674e..23e0dc58 100644 --- a/lib/date.js +++ b/lib/date.js @@ -33,7 +33,7 @@ var date = { recent: function (days) { var date = new Date(); var future = date.getTime(); - future -= Faker.random.number(days) * 3600 * 1000; // some time from now to N days ago, in milliseconds + future -= Faker.random.number(days) * 24 * 60 * 60 * 1000; // some time from now to N days ago, in milliseconds date.setTime(future) return date.toJSON(); |
