From 2f466dda5634ae4a62999a94c33d293cbe07efb8 Mon Sep 17 00:00:00 2001 From: sava Date: Thu, 26 Mar 2020 03:07:07 +0100 Subject: [PATCH] there we go --- it1/bibliotek/bibliotek.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it1/bibliotek/bibliotek.js b/it1/bibliotek/bibliotek.js index e0f5e61..47dbade 100644 --- a/it1/bibliotek/bibliotek.js +++ b/it1/bibliotek/bibliotek.js @@ -5,7 +5,7 @@ var add = function() { forfatter: $('#author')[0].value, forlag: $('#publisher')[0].value, terningkast: $('#rating')[0].value, - utgitt: $('#published')[0].value // new firebase.firestore.Timestamp(Date.parse(Date($('#published')[0].value))/1000) + utgitt: new firebase.firestore.Timestamp(Date.parse(Date($('#published')[0].value))/1000) }).then(function() { $('#status').html('

La til bok '+$('#title')[0].value+'!

') }).catch(function() {