projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Started to populate tt_project_task_binds with group_id and org_id.
[timetracker.git]
/
WEB-INF
/
lib
/
common.lib.php
diff --git
a/WEB-INF/lib/common.lib.php
b/WEB-INF/lib/common.lib.php
index
4337710
..
d29ba1a
100644
(file)
--- a/
WEB-INF/lib/common.lib.php
+++ b/
WEB-INF/lib/common.lib.php
@@
-390,3
+390,11
@@
function ttStartsWith($string, $startString)
$len = strlen($startString);
return (substr($string, 0, $len) === $startString);
}
$len = strlen($startString);
return (substr($string, 0, $len) === $startString);
}
+
+// ttDateToUserFormat converts a date from database format to user format.
+function ttDateToUserFormat($date)
+{
+ global $user;
+ $o_date = new DateAndTime(DB_DATEFORMAT, $date);
+ return $o_date->toString($user->date_format);
+}