+ + Are you sure? +
+- - Are you sure? -
-diff --git a/codepot/src/codepot/models/logmodel.php b/codepot/src/codepot/models/logmodel.php index 5a89e522..7d434f28 100644 --- a/codepot/src/codepot/models/logmodel.php +++ b/codepot/src/codepot/models/logmodel.php @@ -200,7 +200,7 @@ class LogModel extends Model $now = time(); $one_month_ago = $now - (24 * 60 * 60 * 30); - $this->db->where ('createdon <=', codepot_unixtimetodate($one_month_ago)); + $this->db->where ('createdon <=', codepot_unixtimetodbdate($one_month_ago)); $this->db->delete ('log'); if ($this->db->trans_status() === FALSE) diff --git a/codepot/src/codepot/views/log.php b/codepot/src/codepot/views/log.php index 4e0c15d1..74152409 100644 --- a/codepot/src/codepot/views/log.php +++ b/codepot/src/codepot/views/log.php @@ -122,27 +122,33 @@ $this->load->view (
+ + Are you sure? +
+- - Are you sure? -
-