aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/browser/index.html2
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());