phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] property/class.bocommon.php, 1.1.1.5


From: nomail
Subject: [Phpgroupware-cvs] property/class.bocommon.php, 1.1.1.5
Date: Fri, 21 May 2004 18:35:18 -0000

Update of /property
Modified Files:
        Branch: 
          class.bocommon.php

date: 2004/04/24 21:36:26;  author: sigurdne;  state: Exp;  lines: +25 -1

Log Message:
no message
=====================================================================
Index: property/class.bocommon.php
diff -u property/class.bocommon.php:1.1.1.4 property/class.bocommon.php:1.1.1.5
--- property/class.bocommon.php:1.1.1.4 Sat Apr 24 19:39:54 2004
+++ property/class.bocommon.php Sat Apr 24 21:36:26 2004
@@ -1487,5 +1487,29 @@
                        );
                        return $filter_data;
                }
+
+               function show_date($t = '', $format = '')
+               {
+                       if (!$t || intval($t) <= 0)
+                       {
+                               return False;
+                       }
+
+                       $format .= 'H:i:s';
+
+                       if (! $format)
+                       {
+                               $format = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat'] . ' - ';
+                               if 
($GLOBALS['phpgw_info']['user']['preferences']['common']['timeformat'] == '12')
+                               {
+                                       $format .= 'h:i:s a';
+                               }
+                               else
+                               {
+                                       $format .= 'H:i:s';
+                               }
+                       }
+                       return date($format,$t);
+               }
        }
 ?>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]