Login or Register

RSS IconRecent posts in this topic

avatar
mleebert on Mar 11. 2008. 1:47 am
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
400 LUX, LLC | 400lux.com
avatar
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
avatar
mleebert on Mar 11. 2008. 12:38 pm
I was, thanks!
400 LUX, LLC | 400lux.com

RSS IconRecent posts in this topic