[mythtv-users] MythWEB issues
Isaac Richards
ijr at po.cwru.edu
Mon Jun 16 21:43:07 EDT 2003
On Monday 16 June 2003 08:21 pm, James Knight wrote:
> This patch seems to fix the fix conflicts page. I took this information
> from the PHP webpage on date. I know nearly no PHP, but worksforme.
see below..
> Index: functions.php
> ===================================================================
> RCS file: /var/lib/mythcvs/mythweb/functions.php,v
> retrieving revision 1.16
> diff -u -r1.16 functions.php
> --- functions.php 10 Jun 2003 15:40:10 -0000 1.16
> +++ functions.php 17 Jun 2003 00:19:44 -0000
> @@ -998,7 +998,11 @@
> }
>
> function getUnixTime($mythtime) {
> - return strtotime("$mythtime");
> + list($year,$month,$day,$hour,$minute,$second) =
> split("[-:T\.]",$mythtime);
> + // TODO: if(($year < 100) and (strlen($year) == 4))
> + // then I shouldn't get the current century.
> + // Don't know how to pass this to strtotime.
> + return strtotime("$year-$month-$day $hour:$minute:$second");
> }
Is this bit necessary? At least here, strtotime seems to understand the ISO
date format.. Not that I know anything about php, but =)
Isaac
More information about the mythtv-users
mailing list