diff --git a/codepot/src/codepot/views/file_home.php b/codepot/src/codepot/views/file_home.php index 29fbaf5d..729514a1 100644 --- a/codepot/src/codepot/views/file_home.php +++ b/codepot/src/codepot/views/file_home.php @@ -51,13 +51,12 @@ else { function comp_files ($a, $b) { - if ($a->tag == $b->tag) + $cmp = strcmp ($b->tag, $a->tag); + if ($cmp == 0) { - return ($a->name > $b->name)? -1: - ($a->name < $b->name)? 1: 0; + return strcmp ($a->name, $b->name); } - - return ($a->tag < $b->tag)? 1: -1; + return $cmp; } usort ($files, 'comp_files'); diff --git a/codepot/src/codepot/views/log.php b/codepot/src/codepot/views/log.php index a28f43bf..edcee635 100644 --- a/codepot/src/codepot/views/log.php +++ b/codepot/src/codepot/views/log.php @@ -162,8 +162,10 @@ $this->load->view ( { $code = $log['message']; - $date = substr($code['time'], 0, 10); - $time = substr($code['time'], 11, 5); + //$date = substr($code['time'], 0, 10); + //$time = substr($code['time'], 11, 5); + $date = date ('Y-m-d', strtotime($log['createdon'])); + $time = date ('h:i', strtotime($log['createdon'])); } else { diff --git a/codepot/src/codepot/views/project_home.php b/codepot/src/codepot/views/project_home.php index becb7ef6..68f4015c 100644 --- a/codepot/src/codepot/views/project_home.php +++ b/codepot/src/codepot/views/project_home.php @@ -105,7 +105,8 @@ $this->load->view ( print '