Here\'s a summary of the issue: On Sundays, strtotime(\'this week\')
returns the start of next week.
In PHP, the week seems to start on Monday. But, on
As far as I can tell, this is a bug. I see no logical reason why strtotime('this week');
should return a future date. This is a pretty major bug. In my particular case, I had a leaderboard that showed the users with the most points since the beginning of the week. But on Sundays, it was empty because strtotime
returned a timestamp for a future date. I was doubtful, because just I don't know how this could have gone unnoticed, but I couldn't find any other reports of this bug.
Thanks for all your time and help, folks.