This is really weird and I’m hoping there’s a really simple answer…
According to php.net, to get the current day of the week you should use
$day = date("l");
So this is my code:
// Set Timezone
date_default_timezone_set('America/New York');
// What day of the week is it (Mon - Sun)
$day = date("l");
But it keeps saying today is “Mon”
This isn’t even a full textual representation of the day, it’s just a textual representation of a day, three letters which according to php.net is achieved by using date(‘D’) - Yet even when I use this it still says “Mon”
Why is it doing this when today is in fact Friday in New York (Saturday where I am) — nowhere in the world is it currently Monday!