diff options
| author | beto <[email protected]> | 2015-12-30 18:17:11 +0100 |
|---|---|---|
| committer | beto <[email protected]> | 2015-12-30 18:17:11 +0100 |
| commit | 1c8317a0907114c844798dfc2b75e3daea94b6a5 (patch) | |
| tree | c724390ce7d031f549ff261c05ae41b8f5cf5e3b /examples/browser | |
| parent | 322a2ad47757514bd381819f44e8d3bc857b55e1 (diff) | |
| download | faker-1c8317a0907114c844798dfc2b75e3daea94b6a5.tar.xz faker-1c8317a0907114c844798dfc2b75e3daea94b6a5.zip | |
[Fix] Display first month as 1 not 0.
Diffstat (limited to 'examples/browser')
| -rw-r--r-- | examples/browser/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/browser/index.html b/examples/browser/index.html index c45a31ee..99a961dd 100644 --- a/examples/browser/index.html +++ b/examples/browser/index.html @@ -119,7 +119,7 @@ lastName = faker.name.lastName(); var dob = faker.date.past(50, new Date("Sat Sep 20 1992 21:35:02 GMT+0200 (CEST)")); - dob = dob.getFullYear() + "-" + dob.getMonth() + "-" + dob.getDate(); + dob = dob.getFullYear() + "-" + (dob.getMonth()+1) + "-" + dob.getDate(); // First month is "1" $('#inputName').attr("value", faker.name.findName(firstName, lastName)); $('#inputDob').attr("value", dob); $('#inputStreetAddress').attr("value", faker.address.streetAddress()); |
