Dates before 1-1-1970

Discuss MySQL Ajax Table Editor Paid Version

Dates before 1-1-1970

Postby odiggy » Wed Jun 20, 2018 1:30 am

I can't put dates with the datepicker before 1-1-1970. I just discovered this when making a date of birth column and was entering some birth dates prior to 1970. I tried even with the demo on this site and the default install of mate so it must be in the code somewhere.

I did find only this post that is somewhat helpful. https://mysqlajaxtableeditor.com/discussmate/viewtopic.php?f=4&t=294&p=1119&hilit=date+before+1970&sid=28ce63880cfd2d03bbb62e43e6f339ee&sid=8f4fc93aa9963d9550a49f3cb6a0e76b#p1119
odiggy
 
Posts: 9
Joined: Sat Apr 28, 2018 2:35 am

Re: Dates before 1-1-1970

Postby odiggy » Wed Jun 20, 2018 3:05 am

In ajaxtableeditor.php I commented out this if statement so it can return negative unix timestamp values (dates <1970) on line 1622. I can input dates now <1970 yay!

Code: Select all
      $ts = strtotime($date);
      // if($ts !== false && $ts > 0)
      {
         return date($format,$ts);
      }
      return '';


Cheers
odiggy
 
Posts: 9
Joined: Sat Apr 28, 2018 2:35 am


Return to Paid Version

Who is online

Users browsing this forum: No registered users and 6 guests

cron