Strict Warning: date() in inc/sqlsess/sqlsess.php

Bug #790812 reported by Lars Vierbergen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RemoteCP Panel
Won't Fix
Undecided
Unassigned
1.x
Won't Fix
High
Lars Vierbergen

Bug Description

An error was raised when accessing the RemoteCP Panel. The desktop panel shows false|PHP Error.

Strict warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Denver' for 'MDT/-6.0/DST' instead in /home/remotecp/account/inc/sqlsess/sqlsess.php on line 16
Context:
array(2) {
  ["database"]=>
  object(mysqli)#1 (0) {
  }
  ["tbl"]=>
  string(8) "sessions"
}

Backtrace:
array(3) {
  [1]=>
  array(4) {
    ["file"]=>
    string(46) "/home/remotecp/account/inc/sqlsess/sqlsess.php"
    ["line"]=>
    int(16)
    ["function"]=>
    string(4) "date"
    ["args"]=>
    array(2) {
      [0]=>
      &string(11) "Y-m-d H:i:s"
      [1]=>
      &int(1306862031)
    }
  }
  [2]=>
  array(7) {
    ["file"]=>
    string(42) "/home/remotecp/account/inc/controllers.php"
    ["line"]=>
    int(25)
    ["function"]=>
    string(7) "SQLSESS"
    ["class"]=>
    string(7) "SQLSESS"
    ["type"]=>
    string(2) "->"
    ["object"]=>
    object(SQLSESS)#2 (3) {
      ["connection:private"]=>
      object(mysqli)#1 (0) {
      }
      ["table:private"]=>
      string(8) "sessions"
      ["cookname:private"]=>
      string(9) "SQLSESSID"
    }
    ["args"]=>
    array(2) {
      [0]=>
      object(mysqli)#1 (0) {
      }
      [1]=>
      &string(8) "sessions"
    }
  }
  [3]=>
  array(4) {
    ["file"]=>
    string(32) "/home/remotecp/account/panel.php"
    ["line"]=>
    int(8)
    ["args"]=>
    array(1) {
      [0]=>
      string(42) "/home/remotecp/account/inc/controllers.php"
    }
    ["function"]=>
    string(7) "require"
  }
}

Related branches

tags: added: php.error php.strict
summary: - Strict Warning: date()
+ Strict Warning: date() in inc/sqlsess/sqlsess.php
Changed in remotecp-panel:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.