Update Cat.php

This commit is contained in:
Peter Goodhall
2022-08-01 11:30:41 +01:00
parent 858756e6b8
commit 0f9ac6a621

View File

@@ -5,9 +5,9 @@
function update($result, $user_id) {
if ($result['timestamp'] != "") {
$timestamp = $result['timestamp'];
$timestamp = gmdate("Y-m-d H:i:s");
} else {
$timestamp = date("Y-m-d H:i:s", time() - date("Z")) ;
$timestamp = gmdate("Y-m-d H:i:s");
}
$this->db->where('radio', $result['radio']);