fixed undefined timestamp

This commit is contained in:
Sublunar Space 2018-12-24 19:56:08 +01:00
parent 7c1e00e7f5
commit 735d1c3bce

View file

@ -280,6 +280,7 @@
*/ */
// set timestamp when DateTimePicker changes // set timestamp when DateTimePicker changes
timestamp = new moment().unix();
$('#datetime').on("dp.change", function() { $('#datetime').on("dp.change", function() {
timestamp = $(this).data("DateTimePicker").date().utc().unix(); timestamp = $(this).data("DateTimePicker").date().utc().unix();
}); });