Jump to content

knutsford

Members
  • Posts

    15
  • Joined

  • Last visited

Posts posted by knutsford

  1. I am getting

     

    set_exception_handler() expects the argument (static BugReporter::exception_handler) to be a valid callback in ....

     

     

    The line is

    set_exception_handler(array('static BugReporter', 'exception_handler'));

    BugReporter is a class - eg

     

    class BugReporter {

     

    }

     

     

    exception_handler is a function withing the class

     

     

    I have no idea what is wrong. I haven't come across set_exception_handler() before

     

     

    Can anyone see what is wrong - Thanks

  2. Ok I have added

                    if (date("I", $temp_time))
                    {
                        $temp_time += 3600;            
                    }

     

    before converting it back to a date and time but I didn't think I needed to

  3. I am having trouble coverting a untix tiem stamp to British Summer time

     

     

    $date = substr($row[18], 0, -1);
    date_default_timezone_set('Europe/London');
    $temp_time = strtotime($date);                        
    $local_date = date('Y-m-d H:i', $temp_time);

     

    $date has the date in GMT time and I want to take care of the Britsh Summer Time difference but local_date is GMT time as well. I thought date_default_timezone_set('Europe/London'); was supposed to add an hour if it is British Summer Time? How do I take care of BST?

     

    Thanks

     

     

     

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.