Edit report at https://bugs.php.net/bug.php?id=62785&edit=1
ID: 62785 Updated by: paj...@php.net Reported by: d dot sandip59 at gmail dot com Summary: mktime() and strtotime() does not return anything for date '2050-12-31'' Status: Open Type: Bug -Package: date_time +Package: Date/time related Operating System: Windows XP PHP Version: 5.4.5 Block user comment: N Private report: N New Comment: fix category Previous Comments: ------------------------------------------------------------------------ [2012-08-09 12:13:27] anon at anon dot anon https://en.wikipedia.org/wiki/Year_2038_problem ------------------------------------------------------------------------ [2012-08-09 10:00:42] d dot sandip59 at gmail dot com Description: ------------ I have use this date:- $exp_date = "2050-12-31 00:00:00"; $timestamp = strtotime($exp_date); echo $timestamp; But i got no timestamp value for it. Also, I am using this following code:- list($year, $month, $date) = explode('-', $exp_date); $timestamp = mktime(0,0,0, $month,$date,$year); echo $timestamp; But i also got no timestamp value for it. Test script: --------------- I have use this date:- $exp_date = "2050-12-31 00:00:00"; $timestamp = strtotime($exp_date); echo $timestamp; list($year, $month, $date) = explode('-', $exp_date); $timestamp = mktime(0,0,0, $month,$date,$year); echo $timestamp; Expected result: ---------------- It show return a timestamp value even after the year 2037. Till the year 2037 it is returning valid timestamp value, but after that it does not return any timestamp value. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62785&edit=1