12-13-2018, 01:31 AM
BOMs.php
When adding a new BoM item...
The code below results in 12/31/1969:
The code below results in 12/12/2037:
Any ideas on this nonsense?
What the???
https://en.wikipedia.org/wiki/Year_2038_problem
More here: https://www.phpclasses.org/blog/package/...tamps.html
When adding a new BoM item...
The code below results in 12/31/1969:
PHP Code:
$_POST['EffectiveTo'] = Date($_SESSION['DefaultDateFormat'], Mktime(0, 0, 0, Date('m'), Date('d'), (Date('y') + 20)));
The code below results in 12/12/2037:
PHP Code:
$_POST['EffectiveTo'] = Date($_SESSION['DefaultDateFormat'], Mktime(0, 0, 0, Date('m'), Date('d'), (Date('y') + 10)));
Any ideas on this nonsense?
What the???
https://en.wikipedia.org/wiki/Year_2038_problem
More here: https://www.phpclasses.org/blog/package/...tamps.html