<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>aC forum: Time reporting on Today/Timezone</title>
  <link>http://www.activecollab.com/forums/topic/3780/</link>
  <description>Recent posts on topic: Time reporting on Today/Timezone</description>
  <dc:language>en-us</dc:language>
  <pubDate>Thu, 24 May 2012 02:40:11 CEST</pubDate>
  
  <item>
    <link>http://www.activecollab.com/forums/post/17812/#post17812</link>
    <guid>http://www.activecollab.com/forums/post/17812/#post17812</guid>
    <title>Post #4 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p><div class="postQuote"><blockquote><div class="quoteAuthor">Greg_TBone:</div>Edit: The way this affects things is that when viewing a time report for time entered Today, the correct GMT offset doesn't get applied, so for us in Sydney, Australia (GMT +10), I still see time from yesterday for most of the day...</blockquote></div><br />
<br />
This should not happen. Can you check the query in /logs (activeCollab keeps execution log when <a href="https://www.activecollab.com/support/index.php?pg=kb.page&amp;id=50" target="_blank" rel="nofollow">debugging</a> is turned on)?</p>]]></description>
    <pubDate>Fri, 27 Feb 2009 10:00:39 CET</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/17807/#post17807</link>
    <guid>http://www.activecollab.com/forums/post/17807/#post17807</guid>
    <title>Post #3 by Greg_TBone</title>
    <dc:creator>Greg_TBone</dc:creator>
    <description><![CDATA[<p>I believe the same issue is in the TimeReport.class.php file (/activecollab/application/modules/timetracking/models/time_reports/TimeReport.class.php). I make it to be line 104 that you need to change.<br />
<br />
Just make the exact same change as Ilija mentioned above.<br />
<br />
Edit: The way this affects things is that when viewing a time report for time entered Today, the correct GMT offset doesn't get applied, so for us in Sydney, Australia (GMT +10), I still see time from yesterday for most of the day...</p>]]></description>
    <pubDate>Fri, 27 Feb 2009 01:17:29 CET</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/17117/#post17117</link>
    <guid>http://www.activecollab.com/forums/post/17117/#post17117</guid>
    <title>Post #2 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>To cover this issue, open AssignmentsFilter class and find prepareConditions method. Find:<br />
<br />
<pre name="code" class="brush: php">$today = new DateValue();</pre><br />
<br />
and replace it with:<br />
<br />
<pre name="code" class="brush: php">$today = new DateValue(time() + get_user_gmt_offset($user));</pre><br />
<br />
$logged_user is out of the scope in this method, but you can use $user variable. This issue will be covered with next bug fix release.</p>]]></description>
    <pubDate>Fri, 30 Jan 2009 07:23:54 CET</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/17115/#post17115</link>
    <guid>http://www.activecollab.com/forums/post/17115/#post17115</guid>
    <title>Post #1 by jlarmstrong</title>
    <dc:creator>jlarmstrong</dc:creator>
    <description><![CDATA[<p>I had my users complaining to me that the time reporting module wasn't adhering to todays date correctly after 5 or 6 pm EDT. I realized that this was caused by the GMT rollover so I made the change listed below at line 104 in &quot;modules\timetracking\models\time_reports\TimeReport.class.php&quot;. What it looks like it really will do is translate any of the time reports to adhere to my users local time settings. Does anyone have any advice or feedback on this change?<br />
<br />
//$today = new DateValue();<br />
$today = new DateValue(time() + get_user_gmt_offset($this-&gt;logged_user));<br />
<br />
<br />
</p>]]></description>
    <pubDate>Fri, 30 Jan 2009 01:40:29 CET</pubDate>
  </item>
</channel>
</rss>
