diff --git a/applications_model.php b/applications_model.php
index e7ba1d5..d596643 100755
--- a/applications_model.php
+++ b/applications_model.php
@@ -11,7 +11,7 @@ function __construct($serial='')
$this->rs['serial_number'] = $serial;
$this->rs['name'] = '';
$this->rs['path'] = '';
- $this->rs['last_modified'] = 0;
+ $this->rs['last_modified'] = null;
$this->rs['obtained_from'] = '';
$this->rs['runtime_environment'] = '';
$this->rs['version'] = '';
@@ -47,7 +47,7 @@ function process($plist)
$typeList = array(
'name' => '',
- 'last_modified' => '',
+ 'last_modified' => null,
'obtained_from' => 'unknown',
'path' => '',
'runtime_environment' => '',
diff --git a/migrations/2022_06_14_000000_applications_null_last_modified.php b/migrations/2022_06_14_000000_applications_null_last_modified.php
new file mode 100644
index 0000000..a8bbeb4
--- /dev/null
+++ b/migrations/2022_06_14_000000_applications_null_last_modified.php
@@ -0,0 +1,25 @@
+table($this->tableName, function (Blueprint $table) {
+ $table->bigInteger('last_modified')->nullable()->change();
+ });
+ }
+
+ public function down()
+ {
+ $capsule = new Capsule();
+ $capsule::schema()->table($this->tableName, function (Blueprint $table) {
+ $table->bigInteger('last_modified')->change();
+ });
+ }
+}
diff --git a/views/applications_listing.php b/views/applications_listing.php
index 7d26f9a..b44ecaf 100755
--- a/views/applications_listing.php
+++ b/views/applications_listing.php
@@ -2,51 +2,51 @@
-
-
-
…
-
-
-
-
-
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
-
-
-
-
-
- |
-
-
-
-
-
+
+
+
…
+
+
+
+
+
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+
+
+
+
+
+ |
+
+
+
+
+
view('partials/foot'); ?>
diff --git a/views/applications_tab.php b/views/applications_tab.php
index bae8fa5..530bafd 100755
--- a/views/applications_tab.php
+++ b/views/applications_tab.php
@@ -10,7 +10,7 @@
|
|
|
- |
+ |
|
|
|
@@ -76,8 +76,10 @@
// Format date
var event = parseInt($('td:eq(5)', nRow).html());
- var date = new Date(event * 1000);
- $('td:eq(5)', nRow).html(''+moment(date).format('llll')+'');
+ if (event > 0){
+ var date = new Date(event * 1000);
+ $('td:eq(5)', nRow).html(''+moment(date).format('llll')+'');
+ }
// runtime_environment
var colbit=$('td:eq(6)', nRow).html();