1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

[00:07:51] [Server thread/CRITICAL]: Unhandled exception executing command 'test' in test: gmdat

Discussion in 'Development' started by Levi, Jul 3, 2018.

  1. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    Code:
    [15:20:39] [Server thread/CRITICAL]: Unhandled exception executing command 'test' in test: gmdate() expects parameter 2 to be integer, float given
    PHP:
    $uh = (int) $target->getFirstPlayed();
            
    $firstPlayed gmdate('F j, Y'$uh 1000);
     
    Last edited: Jul 3, 2018
  2. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    You probably didn't set a timezone, so either add
    Code:
    date_default_timezone_set('UTC');
    to your plugin (or whatever timezone you use) or add
    Code:
    date.timezone = "UTC"
    to your php.ini.
     
  3. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    You didn't even post the whole error...
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.