[dev] Patch for Current Time in summary

Rick Emery rick at emery.homelinux.net
Thu Aug 14 09:04:13 PDT 2003


I don't know if anybody else would be interested in this, but I thought it
looked better with the date/time centered (vertically and horizontally) within
the block. This patch accomplishes that (though I'm not sure if I did it the
right way).

Thanks,
Rick
-------------- next part --------------
Index: time.php
===================================================================
RCS file: /repository/horde/lib/Block/time.php,v
retrieving revision 1.1
diff -u -r1.1 time.php
--- time.php	31 Jul 2003 03:29:49 -0000	1.1
+++ time.php	14 Aug 2003 15:56:14 -0000
@@ -44,7 +44,7 @@
      */
     function _content()
     {
-        return '<span style="font-family:verdana;font-size:18px;">' . strftime('%A, %B %d, %Y %H:%M') . '</span>';
+        return '<table width="100%" height="100%"><tr><td align="center" valign="center"><span style="font-family:verdana;font-size:18px;">' . strftime('%A, %B %d, %Y %H:%M') . '</span></td></tr></table>';
     }
 
 }


More information about the dev mailing list