From 6cb5e099586b33d0fe9c011428a8e2dea641a647 Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Sat, 21 Jan 2017 08:54:25 -0600 Subject: [PATCH] `time` is not callable. --- bikeshop_project/registration/templates/member_form.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bikeshop_project/registration/templates/member_form.html b/bikeshop_project/registration/templates/member_form.html index 641a4ad..03c492c 100644 --- a/bikeshop_project/registration/templates/member_form.html +++ b/bikeshop_project/registration/templates/member_form.html @@ -21,7 +21,7 @@ }); Object.observe(dateOfBirth, function(changes) { var input = document.getElementById('{{ form.date_of_birth.id_for_label }}'); - input.value = dateOfBirth.time().format('YYYY-MM-DD'); + input.value = dateOfBirth.time.format('YYYY-MM-DD'); input.parentNode.classList.add('is-dirty'); var threshold = moment.duration(18, 'years');