Ticket #11892: mythweb-channel-time.diff

File mythweb-channel-time.diff, 811 bytes (added by bucky@…, 12 years ago)

Time arithmetic change to /modules/tv/channel.php

  • modules/tv/channel.php

    diff -rU 8 mythweb-orig/modules/tv/channel.php mythweb/modules/tv/channel.php
    old new  
    1818
    1919// Chanid?
    2020    $this_channel =& Channel::find($_REQUEST['chanid']);
    2121
    2222// New list date?
    2323    if ($_REQUEST['date']) {
    2424        if (strlen($_REQUEST['date']) == 8)
    2525            $_REQUEST['date'] = unixtime(sprintf('%08d000000', $_REQUEST['date']));
    26         $_SESSION['list_time'] = $_REQUEST['date'];
     26        $_SESSION['list_time'] = $_REQUEST['date'] - date('Z',$_REQUEST['date']);
    2727    }
    2828
    2929// No channel found
    3030    if (!$_REQUEST['chanid'] || !$this_channel->chanid) {
    3131        redirect_browser(root_url.'tv/list');
    3232    }
    3333
    3434// Load the programs for today