New time record default value not offset to user's time
Page: 1
I've recently installed v1.0.6 and I was noticing while working with time records that the default date when entering in a new Time Record was not offset to the user's time.
I modified line 105 in activecollab/application/modules/timetracking/controllers/TimetrackingController.class.php
from: 'record_date' => new DateValue(),
to: 'record_date' => new DateValue(time() + get_user_gmt_offset()),
It looks to have done the trick, but I haven't had much more time to test to see if this affects anything. So use at your own risk.
All the best,
Matt
I modified line 105 in activecollab/application/modules/timetracking/controllers/TimetrackingController.class.php
from: 'record_date' => new DateValue(),
to: 'record_date' => new DateValue(time() + get_user_gmt_offset()),
It looks to have done the trick, but I haven't had much more time to test to see if this affects anything. So use at your own risk.
All the best,
Matt
400 LUX, LLC | 400lux.com
Ilija Studen
on Mar 11. 2008. 5:30 am
You are talking about the default value that is preset. That's correct, user timezone is not taken into account when preset value is prepared. We'll have it covered in v1.1 (already made a change in the code).
activeCollab team member



