diff options
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(); |
