2

I have the code

<?php echo strtotime( '2099-12-31' ); ?>

Is written on the Laravel Framework, when running the program it does not produce results, but when I run on the folder I manually create it completely run the output. For smaller values, eg

<?php echo strtotime( '2017-12-31' ); ?>

in Laravel running completely normal .Thanks

zuluk
  • 1,557
  • 8
  • 29
  • 49
Ba Trần
  • 43
  • 3
  • 1
    Possible duplicate of [What would cause php's strtotime to not work for a date in 2099?](https://stackoverflow.com/questions/9153014/what-would-cause-phps-strtotime-to-not-work-for-a-date-in-2099) – Govind Samrow Jun 22 '17 at 06:32
  • It doesn't matter if you are using Laravel or not, it is still a php function and Laravel doesn't change that. Where are you putting this line in your Laravel project? – Jerodev Jun 22 '17 at 06:34
  • I test in the model, controller, view . Not working – Ba Trần Jun 22 '17 at 06:37
  • @BaTrần Please, consider this [answer](https://stackoverflow.com/a/3953378/3903412) to the question [Maximum time() | PHP](https://stackoverflow.com/questions/3953333/maximum-time-php) – Joe Black Jun 22 '17 at 06:44
  • Thank you very much – Ba Trần Jun 22 '17 at 07:01

1 Answers1

1

maybe that is 32-bit server issue, max date is about 2038. check your server enviroment