Hughesnet Community

Spot the rookie error

cancel
Showing results for 
Search instead for 
Did you mean: 
MarkJFine
Professor

Spot the rookie error

Europe changed time at 2am this weekend (we do the same next weekend). But a PHP script routine that I run on a US server to detect time changes in London was broke. I've already fixed it, but who else can find the problem (sometimes I'm such a dummy)...

 

date_default_timezone_set('UTC');

$time_adj = strtotime("now") - strtotime("Europe/London");
if ($time_adj = 3600) {
    $time_lbl = 'BST';
} else {
    $time_lbl = 'GMT';
}


* Disclaimer: I am a HughesNet customer and not a HughesNet employee. All of my comments are my own and do not necessarily represent HughesNet in any way.
16 REPLIES 16