https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292013-08-09T23:54:26ZRedmineRedmine - Defect #14658: Wrong activity timezone on user pagehttps://www.redmine.org/issues/14658?journal_id=511712013-08-09T23:54:26ZToshi MARUYAMA
<ul></ul><p>CI server time is a head of 2 hours.<br />Now, It is 2013-08-09 23:50 UTC.<br />But CI server time is Sat Aug 10 03:50:03 +0200 2013.<br /><a class="external" href="http://www.redmine.org/builds/index.html">http://www.redmine.org/builds/index.html</a></p> Redmine - Defect #14658: Wrong activity timezone on user pagehttps://www.redmine.org/issues/14658?journal_id=511722013-08-10T08:01:55ZEtienne Massip
<ul><li><strong>Category</strong> set to <i>Website (redmine.org)</i></li></ul> Redmine - Defect #14658: Wrong activity timezone on user pagehttps://www.redmine.org/issues/14658?journal_id=581932014-08-21T06:04:04ZMatthew Peterson
<ul></ul><p>I'm fairly sure this is a duplicate of <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Day grouping on Activity view ignores user's time zone (Closed)" href="https://www.redmine.org/issues/1048">#1048</a></p> Redmine - Defect #14658: Wrong activity timezone on user pagehttps://www.redmine.org/issues/14658?journal_id=587502014-09-19T03:42:30ZToshi MARUYAMA
<ul><li><strong>Category</strong> deleted (<del><i>Website (redmine.org)</i></del>)</li></ul> Redmine - Defect #14658: Wrong activity timezone on user pagehttps://www.redmine.org/issues/14658?journal_id=587522014-09-19T03:45:31ZToshi MARUYAMA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/1048">Defect #1048</a>: Day grouping on Activity view ignores user's time zone</i> added</li></ul> Redmine - Defect #14658: Wrong activity timezone on user pagehttps://www.redmine.org/issues/14658?journal_id=587532014-09-19T03:47:56ZToshi MARUYAMA
<ul></ul><p>Matthew Peterson wrote:</p>
<blockquote>
<p>I'm fairly sure this is a duplicate of <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Day grouping on Activity view ignores user's time zone (Closed)" href="https://www.redmine.org/issues/1048">#1048</a></p>
</blockquote>
<p>No.<br />I mean this issue is on user page.<br /><a class="external" href="http://www.redmine.org/users/11192">http://www.redmine.org/users/11192</a></p> Redmine - Defect #14658: Wrong activity timezone on user pagehttps://www.redmine.org/issues/14658?journal_id=587542014-09-19T03:56:05ZToshi MARUYAMA
<ul><li><strong>File</strong> <a href="/attachments/12378">act.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/12378/act.png">act.png</a> added</li></ul><p>Activity page works correctly.<br /><a class="external" href="http://www.redmine.org/activity?from=2013-08-10&user_id=11192">http://www.redmine.org/activity?from=2013-08-10&user_id=11192</a></p>
<p><img src="https://www.redmine.org/attachments/download/12378/act.png" alt="" /></p> Redmine - Defect #14658: Wrong activity timezone on user pagehttps://www.redmine.org/issues/14658?journal_id=692252016-02-14T22:35:33ZKit Grose
<ul></ul><p>This issue is affecting our installation too. Interestingly, it seems to only affect one of our users (not all). That user has the same timezone set in their preferences as everyone else.</p>
<p>When other users visit that user's page it shows up incorrectly, and when that user visits any other user's page, the times are shown correctly.</p>
<p>We have v2.3.0.stable installed, though.</p> Redmine - Defect #14658: Wrong activity timezone on user pagehttps://www.redmine.org/issues/14658?journal_id=750182016-12-13T06:05:11ZEwan Makepeace
<ul></ul><p>+1</p> Redmine - Defect #14658: Wrong activity timezone on user pagehttps://www.redmine.org/issues/14658?journal_id=755222017-01-01T02:11:13ZGo MAEDA
<ul><li><strong>Category</strong> set to <i>Activity view</i></li><li><strong>Target version</strong> set to <i>3.2.5</i></li></ul><p>This issue can be fixed by the following patch.<br />ActivitiesController#show have been fixed in <a class="changeset" title="Fixed time zone issues introduced by r9719 (#10996)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/9726">r9726</a> (<a href="http://www.redmine.org/projects/redmine/repository/revisions/9726/diff/trunk/app/controllers/activities_controller.rb" class="external">diff</a>) in order to handle time zones properly. This patch applies the same fix to UsersController#show.</p>
<pre><code class="diff syntaxhl"><span class="gh">Index: app/controllers/users_controller.rb
===================================================================
</span><span class="gd">--- app/controllers/users_controller.rb (revision 16111)
</span><span class="gi">+++ app/controllers/users_controller.rb (working copy)
</span><span class="p">@@ -74,7 +74,7 @@</span>
respond_to do |format|
format.html {
events = Redmine::Activity::Fetcher.new(User.current, :author => @user).events(nil, nil, :limit => 10)
<span class="gd">- @events_by_day = events.group_by(&:event_date)
</span><span class="gi">+ @events_by_day = events.group_by {|event| User.current.time_to_date(event.event_datetime)}
</span> render :layout => 'base'
}
format.api
</code></pre> Redmine - Defect #14658: Wrong activity timezone on user pagehttps://www.redmine.org/issues/14658?journal_id=755232017-01-01T02:11:39ZGo MAEDA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/10996">Defect #10996</a>: Time zones lost when upgrading from Redmine 1.4 to 2.0</i> added</li></ul> Redmine - Defect #14658: Wrong activity timezone on user pagehttps://www.redmine.org/issues/14658?journal_id=755262017-01-01T02:11:50ZGo MAEDA
<ul><li><strong>Has duplicate</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/24707">Defect #24707</a>: Activity in User Profile shows incorrect date/time, dependent to Time zone </i> added</li></ul> Redmine - Defect #14658: Wrong activity timezone on user pagehttps://www.redmine.org/issues/14658?journal_id=756362017-01-04T21:21:53ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Fix committed, thanks.</p> Redmine - Defect #14658: Wrong activity timezone on user pagehttps://www.redmine.org/issues/14658?journal_id=756382017-01-05T04:10:13Zkaz k
<ul><li><strong>File</strong> <a href="/attachments/17404">Defect_14658_Patch_Test_resultsScreenShots.zip</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/17404/Defect_14658_Patch_Test_resultsScreenShots.zip">Defect_14658_Patch_Test_resultsScreenShots.zip</a> added</li></ul>Hi, I came here from <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Activity in User Profile shows incorrect date/time, dependent to Time zone (Closed)" href="https://www.redmine.org/issues/24707">#24707</a>. <br />I tested the patch in note 10 (<a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Wrong activity timezone on user page (Closed)" href="https://www.redmine.org/issues/14658#note-10">#14658#note-10</a>).<br /><strong>Environment</strong>
<ul>
<li>Redmine 3.1.1 (Windows) (not the target version :-) )</li>
<li>Time Zone of the viewer: GMT+09:00(Tokyo).</li>
</ul>
<p><strong>Result</strong><br />The patch worked well. Attached is the screen captures of 'Before' and 'After' patch with comments (Zipped).</p>
<p>Thank you.</p> Redmine - Defect #14658: Wrong activity timezone on user pagehttps://www.redmine.org/issues/14658?journal_id=756392017-01-05T04:42:08ZGo MAEDA
<ul></ul><p>kaz k, thanks for the screenshots.<br />This problem will be fixed in upcoming 3.2.5 / 3.3.2 / 3.4.0.</p>
<p>Your <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Activity in User Profile shows incorrect date/time, dependent to Time zone (Closed)" href="https://www.redmine.org/issues/24707">#24707</a> triggered me to investigate this issue. Thank you again.</p> Redmine - Defect #14658: Wrong activity timezone on user pagehttps://www.redmine.org/issues/14658?journal_id=757092017-01-07T07:53:11ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>