From 13b31b50f708239436a9a5ebd7f8b50cf5e299de Mon Sep 17 00:00:00 2001 From: sava Date: Thu, 26 Mar 2020 16:00:20 +0100 Subject: [PATCH] Quick fix v2 --- 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 47dbade..52d1217 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: new firebase.firestore.Timestamp(Date.parse(Date($('#published')[0].value))/1000) + utgitt: new firebase.firestore.Timestamp(Date.parse(Date($('#published')[0].value))/1000, 0) }).then(function() { $('#status').html('

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

') }).catch(function() {