[mythtv-users] MythWEB issues

James Knight foom at fuhm.net
Tue Jun 17 11:04:26 EDT 2003


On Monday, June 16, 2003, at 08:43  PM, Isaac Richards wrote:

> 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.
>
> Is this bit necessary?  At least here, strtotime seems to understand 
> the ISO
> date format..  Not that I know anything about php, but =)

Here it seemed to work on first glance but looking closer it doesn't.

See test program:
<?PHP

$orig = "2003-10-02T11:30:45";
$unixtime = strtotime($orig);
$new = date("Y-m-d\TH:i:s", $unixtime);
print "$orig = $unixtime = $new\n";
?>
It outputs the following for me:
2003-10-02T11:30:45 = 1065069045 = 2003-10-02T00:30:45

Note the subtle difference of 00:30:45 vs. 11:30:45. Maybe it actually 
does work for you, though..

James



More information about the mythtv-users mailing list