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

error checking breaking my code
Hi there, OK first of all, big apologies for what I assume is really fundamental errors in the struc

Select all entries from database that include a phrase
I have a database of clubs - one of the categories is meeting time and place
I would like to have

How do i use vars in an array
Hiya peeps!

How do I use a var in an array. You will see $id but it isnt working.


Help with translating C code into assembler code
Hi im doing a project that moves a robot around a maze avoiding walls and need some help with conver

defining website tags
Hi,

What would be the best way to define tags for my site, such as website title, url etc.

Error querying database.
I get the above error when trying to insert some values to a datatable.
Here's the code :

Simple code help with redirects
I am trying to figure out a redirect script that detects if the browser is IE 7 and if it does, redi

Wierd if else problem
Hi guys,

this probably aint wierd for you, but it seems like php is playin up to me. may b i

Using CSS to format MySQL query
Hi,

If i want to have a news page on my site, which displays all records of a table in descen

weird problem
last time, i did post a topic concerning why my page sometime will load as blank page when using IE.

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