timestamp right
This commit is contained in:
parent
9e790c75e6
commit
1ad5cc1ab4
@ -5,7 +5,7 @@ var add = function() {
|
||||
forfatter: $('#author')[0].value,
|
||||
forlag: $('#publisher')[0].value,
|
||||
terningkast: $('#rating')[0].value,
|
||||
utgitt: $('#published')[0].value
|
||||
utgitt: $('#published')[0].value // new firebase.firestore.Timestamp(Date.parse(Date($('#published')[0].value))/1000)
|
||||
}).then(function() {
|
||||
$('#status').html('<p style="color: green;">La til bok '+$('#title')[0].value+'!</p>')
|
||||
}).catch(function() {
|
||||
|
Loading…
Reference in New Issue
Block a user