Jump to content

knutsford

Members
  • Posts

    15
  • Joined

  • Last visited

knutsford's Achievements

Member

Member (2/5)

0

Reputation

  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. Any way if (date("I", $temp_time)) { $temp_time += 3600; } should work - thanks for your help
  3. I had understood that Europe/London took care of BST at at the right time of the year but obviously not
  4. You mean I needed the Z in strtotime($date); to make it work?
  5. 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
  6. The date looks like 2019-08-13T13:30:00.000Z. I am confused. I though date_default_timezone_set('Europe/London'); took care of British Summer time and would convert it. What should my code look like then?
  7. 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.