TimeZoneOffset
Posted: Fri Oct 30, 2009 3:40 pm
Hello,
Please i need your help. I have a system that users can use to punch in and out. This system has been working fine however the time went one hour behind on sunday and since then the system has refused to work. I am using IIS server and this is code....
Now i get an error message that sya undefined index:userTimeZoneoffset. Your help is greatly appreciated
Please i need your help. I have a system that users can use to punch in and out. This system has been working fine however the time went one hour behind on sunday and since then the system has refused to work. I am using IIS server and this is code....
Code: Select all
public function showPunchView($messageType = null, $message = null) {
$attendanceObj = new AttendanceRecord();
$records['attRecord'] = $attendanceObj->fetchRecords($_SESSION['empID'], null, null, AttendanceRecord::STATUS_ACTIVE,
AttendanceRecord::DB_FIELD_PUNCHIN_TIME, 'DESC', '0, 1', true);
$records['editMode'] = Config::getAttendanceEmpChangeTime();
$records['empId'] = $_SESSION['empID'];
$timeStampDiff = ($_SESSION['userTimeZoneOffset'] - round(date('Z')/3600, 1))*3600;
$records['currentDate'] = date('Y-m-d', time() $timeStampDiff);
$records['currentTime'] = date('H:i', time() $timeStampDiff);
$records['messageType'] = $messageType;
$records['message'] = $message;
$sysConfObj = new sysConf();
$records['timeInputHint'] = $sysConfObj->getTimeInputHint();