summaryrefslogtreecommitdiff
path: root/app/Helper/Task.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-24 20:39:06 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-24 20:39:06 -0400
commit6efac784fcc1a2e83bb7b43fc7841448b5975cba (patch)
treea083b3c8b86deca9c4f23bcb15cfafeec86924e8 /app/Helper/Task.php
parent58c96b8c4ec3f326b25e6b55f133fc067345cd57 (diff)
Add timer for subtasks and remove settings for subtask time tracking
Diffstat (limited to 'app/Helper/Task.php')
-rw-r--r--app/Helper/Task.php27
1 files changed, 0 insertions, 27 deletions
diff --git a/app/Helper/Task.php b/app/Helper/Task.php
index 13bdb07a..79c412e1 100644
--- a/app/Helper/Task.php
+++ b/app/Helper/Task.php
@@ -10,33 +10,6 @@ namespace Helper;
*/
class Task extends \Core\Base
{
- /**
- * Get the age of an item in quasi human readable format.
- * It's in this format: <1h , NNh, NNd
- *
- * @access public
- * @param integer $timestamp Unix timestamp of the artifact for which age will be calculated
- * @param integer $now Compare with this timestamp (Default value is the current unix timestamp)
- * @return string
- */
- public function age($timestamp, $now = null)
- {
- if ($now === null) {
- $now = time();
- }
-
- $diff = $now - $timestamp;
-
- if ($diff < 3600) {
- return t('<1h');
- }
- else if ($diff < 86400) {
- return t('%dh', $diff / 3600);
- }
-
- return t('%dd', ($now - $timestamp) / 86400);
- }
-
public function getColors()
{
return $this->color->getList();