There's been a reported bug in my application where I was using the strtotime function on the mysql date returned from DB. It all worked well until today when a bug occured.
When I run:
Y instead of
o for the year
echo date('j.n.Y', strtotime('2016-01-01'));
o --- ISO-8601 year number. This has the same value as Y, except that if the ISO week number (W) belongs to the previous or next year, that year is used instead. (added in PHP 5.1.0)
Y --- A full numeric representation of a year, 4 digits