[chora] bug && bugfix again...
Mathieu Arnold
arn_mat@club-internet.fr
Tue, 10 Apr 2001 19:31:12 +0200
Chuck Hagenbuch wrote:
>
> Quoting Mathieu Arnold <arn_mat@club-internet.fr>:
>
> > and, hum, i feel like there's another problem with the url function, you
> > should try the link to w3c at the bottom of the page to see what i
> > mean...
>
> Fixed.
and, i have a problem with the function readableTime from CVSLIB::File,
it seems that time returns de time with the correct time zone (MEST,
+0200) but that $date contains the gmt time which makes a 2 hour
difference,
i did a :
Index: lib/CVSLib/File.php
===================================================================
RCS file: /home/cvs/cvs/dup/horde/chora/lib/CVSLib/File.php,v
retrieving revision 1.14
diff -u -r1.14 File.php
--- lib/CVSLib/File.php 2001/04/10 14:58:01 1.14
+++ lib/CVSLib/File.php 2001/04/10 17:26:33
@@ -213,7 +213,7 @@
* @return String with the human-readable date
*/
function readableTime($date, $long = false) {
- $secs = time() - $date;
+ $secs = time() - $date - 7200;
$i = 0;
$desc = array(1 => 'second',
60 => 'minute',
but it's only good for me, and I'll have to change it in october when
we'll change to winter time ;)
and i actually spend last night searching for a php function to get the
tz, but, i can't find a way around this problem.
--
Mathieu Arnold