TimeZoneOffset


Posted on 16th Feb 2014 07:03 pm by admin

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....
Line number On/Off | Expand/Contract 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();

No comments posted yet

Your Answer:

Login to answer
288 Like 50 Dislike
Previous forums Next forums
Other forums

Mail Script Problems
I have created a PHP mail script. I am having a problem though. In $body i am trying to put two va

Date Question
I'm using the TIMESTAMP() function within mysql to set the date/time for certain events. However, ho

media recovery
Hi,
i startup the database i got the error

SQL> startup
ORACLE instance started.

parsing error
can anyone explain this syntax error:

Parse error: syntax error, unexpected T_IF

The e

Secure pages Sessions vs. Cookies & session_destroy() help
Im new here and new to PHP, I hope you can help me with some questions.

Im writing my web ap

Session login issue
I'm wondering how to fix a problem I'm having with a session-based login system

Say I go to h

How to separate records and ORDER BY
Let say i have 100 records and displayed in one page, then i want to get the records from 50-100 and

Filling gaps in dates
So i'm doing a query for sales data and my return array looks like this

('date' => '20

Session
I am having a little trouble with a session. Not sure if it is my browser or what. I know I do not

News script
Hi ...

I am not sure if this is the rite place to post this but if its not sorry

i am

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash