Quick fix v2

This commit is contained in:
sava 2020-03-26 16:00:20 +01:00
parent 2f466dda56
commit 13b31b50f7

View File

@ -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('<p style="color: green;">La til bok '+$('#title')[0].value+'!</p>')
}).catch(function() {