Punch out time incorrect

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Locked
tao
Posts: 11
Joined: Tue Mar 11, 2008 4:35 pm

Punch out time incorrect

Post by tao »

Hi,

System info:
TimeTrex_Standard_Edition_v2.2.5
ms windows 2003 enterprise sbs
Apache2.2
php5.2.5
PostgreSQL8.2

Can anyone help me with the issue that the punch out time is always incorrect in the punch in/out page. To be exactly, 22 hours behind the correct localtime - GMT+11 - Sydney daylight saving. And the field is set to grey and can't be changed. I haven't tried with punching in.
According to the Administrator guide, I have made sure it is the correct time zone setting in the following page:
Home > Branch List > Edit Branch > Edit Company > New Hire Defaults
and correct time zone for each individual employee in their preference.

PHP logged no error.
I enabled timetrex debugging and get the Timezone set to Australia/Melbourne. I believe Melbourne and Sydney are in one time zone and even if not, the difference shouldn't be 22 hours. Refer to following:

Code: Select all

---------------[ Wed, 12 Mar 2008 12:20:01 +1100 (PID: 5640) ]---------------
DEBUG [259]:	<b>[Function]()</b>: URI: C:\websites\TimeTrex\timetrex\maint\cron.php<br>
DEBUG [261]:	<b>[Function]()</b>: Version: 2.2.5 Edition: 10 Production: 1 Demo Mode: 0<br>
DEBUG [107]:	<b>TTDate::setTimeZone()</b>: Setting TimeZone: Australia/Melbourne<br>
DEBUG [476]:	<b>Install::checkPHPVersion()</b>: Comparing with Version: 5.2.5<br>
DEBUG [425]:	<b>CronJobFactory::isScheduledToRun()</b>:  Name: AddPayPeriod Previous Scheduled Date: Wed, 12 Mar 2008 00:00:00 +1100(1205240400) Last Run Time: Wed, 12 Mar 2008 16:01:00 +1100 Current Epoch: 1205284801<br>
DEBUG [425]:	<b>CronJobFactory::isScheduledToRun()</b>:  Name: AddUserDate Previous Scheduled Date: Wed, 12 Mar 2008 00:15:00 +1100(1205241300) Last Run Time: Wed, 12 Mar 2008 16:16:00 +1100 Current Epoch: 1205284801<br>
DEBUG [425]:	<b>CronJobFactory::isScheduledToRun()</b>:  Name: UserCount Previous Scheduled Date: Wed, 12 Mar 2008 01:15:00 +1100(1205244900) Last Run Time: Wed, 12 Mar 2008 17:16:00 +1100 Current Epoch: 1205284801<br>
DEBUG [425]:	<b>CronJobFactory::isScheduledToRun()</b>:  Name: AddRecurringScheduleShift Previous Scheduled Date: Wed, 12 Mar 2008 12:20:00 +1100(1205284800) Last Run Time: Wed, 12 Mar 2008 19:51:00 +1100 Current Epoch: 1205284801<br>
DEBUG [425]:	<b>CronJobFactory::isScheduledToRun()</b>:  Name: TimeClockSync Previous Scheduled Date: Wed, 12 Mar 2008 12:20:00 +1100(1205284800) Last Run Time: Wed, 12 Mar 2008 14:22:00 +1100 Current Epoch: 1205284801<br>
DEBUG [51]:	<b>[Function]()</b>: CRON: Jobs Executed: 0 of 11<br>
---------------[ Wed, 12 Mar 2008 12:20:01 +1100 (PID: 5640) ]---------------

Have any of you met this before?


ps. I would love to post a screenshot but I am not sure how to do it. It seems like I have to upload it to somewhere in the internet then copy the location to the thread.
tao
Posts: 11
Joined: Tue Mar 11, 2008 4:35 pm

Post by tao »

I sorted it out.

In the New Hire Defaults, I set the timezone to GMT+11 and in MyPrefs I set it to Australia/Sydney. Now I have changed both to Australia/Sydney. Punch out shows correct time now.

I haven't checked the log - before it showed Australia/Melbourne. Maybe it reflects only the New Hire Defaults timezone.
Locked