summaryrefslogtreecommitdiff
path: root/protected/components/Format.php
diff options
context:
space:
mode:
Diffstat (limited to 'protected/components/Format.php')
-rw-r--r--protected/components/Format.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/protected/components/Format.php b/protected/components/Format.php
index 8a80768..91ac90e 100644
--- a/protected/components/Format.php
+++ b/protected/components/Format.php
@@ -33,4 +33,14 @@ class Format {
}
return null;
}
+
+ public static function displayDateForLists($value) {
+ if(Yii::app()->dateFormatter->format('HH',$value->startzeit) < 4)
+ {
+ return "<strong>".Yii::app()->dateFormatter->format('EEEE',$value->startzeit)."</strong><br />".
+ Yii::app()->dateFormatter->format('HH:mm',$value->startzeit)." Uhr";
+ } else{
+ return Yii::app()->dateFormatter->format('HH:mm',$value->startzeit)." Uhr";
+ }
+ }
}