summaryrefslogtreecommitdiff
path: root/src/web/_model/main.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/web/_model/main.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/web/_model/main.php b/src/web/_model/main.php
index 58ae307..cd34740 100644
--- a/src/web/_model/main.php
+++ b/src/web/_model/main.php
@@ -104,6 +104,16 @@ class Main_model {
return NULL;
}
+ /**
+ * Formats a date
+ * @param string $date - the data in RFC3999 format
+ * @returns the formatted date
+ */
+ public function date($date) {
+ $date=date_create($date);
+ return date_format($date, "Y-m-d D H:m");
+ }
+
}
?>