knutsford
-
Posts
15 -
Joined
-
Last visited
Posts posted by knutsford
-
-
Any way
if (date("I", $temp_time))
{
$temp_time += 3600;
}should work - thanks for your help
-
I had understood that Europe/London took care of BST at at the right time of the year but obviously not
-
You mean I needed the Z in strtotime($date); to make it work?
-
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
-
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?
-
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
set_exception_handler() expects the argument (static BugReporter::exception_handler) to be a valid callback
in PHP Coding Help
Posted
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