Skip to content
Snippets Groups Projects
Commit 22f2acdc authored by Peter Rotich's avatar Peter Rotich
Browse files

Use time zone class - we can't join to the table due to upgrade restrictions

parent 2b32ce69
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,7 @@ class Staff {
var $dept;
var $teams;
var $timezone;
var $stats;
function Staff($var) {
......@@ -56,12 +57,10 @@ class Staff {
if(($time=strtotime($this->ht['passwdreset']?$this->ht['passwdreset']:$this->ht['added'])))
$this->ht['passwd_change'] = time()-$time; //XXX: check timezone issues.
/* TODO: Add timezone class
if($this->ht['timezone_id'])
$this->ht['tz_offset'] = Timezone::getOffsetById($this->ht['timezone_id']);
elseif($this->ht['timezone_offset'])
$this->ht['tz_offset'] = $this->ht['timezone_offset'];
*/
return ($this->id);
}
......
......@@ -102,6 +102,7 @@
require(INCLUDE_DIR.'class.log.php');
require(INCLUDE_DIR.'class.mcrypt.php');
require(INCLUDE_DIR.'class.misc.php');
require(INCLUDE_DIR.'class.timezone.php');
require(INCLUDE_DIR.'class.http.php');
require(INCLUDE_DIR.'class.nav.php');
require(INCLUDE_DIR.'class.format.php'); //format helpers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment