[php-src] Issue #7961: strtotime returns non-sense integer given some timestamp string between Jan 17, 2022 and Jan 19, 2022
| From: | damianwadley | Date: | Mon, 17 Jan 2022 20:40:19 +0000 |
| Subject: | [php-src] Issue #7961: strtotime returns non-sense integer given some timestamp string between Jan 17, 2022 and Jan 19, 2022 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239080@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7961
Comment Author: damianwadley
Note that a string with a timestamp must be formatted with an at sign like "@1642400000"
for it to be recognized as a Unix timestamp. If you don't do that then PHP will take its best
guess as to what you were trying to do, and the results should remind you of the phrase
"garbage in, garbage out": https://3v4l.org/HgaA1
https://www.php.net/manual/en/datetime.formats.php