When I try to execute following statement in PHP
echo gmdate("M d Y H:i:s", gmmktime(0, 0, 0,12, 31, 9999));
PHP returns following date
Result Jan 01 1970 00:00:00
I also did try using following strtotime function but the result is same
echo gmdate("M d Y H:i:s", strtotime('2999-12-31'));
Result: Jan 01 1970 00:00:00
Any idea what could be wrong here?