プロジェクト

全般

プロフィール

Vote #63677

未完了

Use Rails timezones support

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Rails support_44
対象バージョン:
-
開始日:
2008/07/29
期日:
進捗率:

0%

予定工数:
category_id:
44
version_id:
0
issue_org_id:
1705
author_id:
1347
assigned_to_id:
0
comments:
5
status_id:
1
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

This switches off previous time offset calculation when showing time values to user, relying on Rails timezones support instead.

This is essential for cases when time is entered by user, so we need this for our #1650 patch (otherwise user sees his time +his timezone offset).

This doesn't bring much to current Redmine as all the time fields are populated automatically currently. May be it could be used to correct SCM timestamps if some give it in non-UTC. And surely this will help time values in custom fields when they support it.

After this patch is applied all the datetimes in the database will be interpreted as being in UTC, so if they don't they need to be updated. For this new redmine:convert_database_times_to_utc rake task is included. Be sure to correct its LOCAL_UTC_OFFSET and back up the database prior to running.

Contributed by Texuna Technologies.


journals

http://mad.ly/2008/04/09/rails-21-time-zone-support-an-overview/ has good introduction to (and discussion of) Rails 2.1 timezones support.
--------------------------------------------------------------------------------
Also config/environment.rb need to be adjusted for particular server (config.time_zone setting)
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
This is used in #2531's implementation
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Needs feedback,3734,fetch_changesets save local time instead of GMT in the database.
relates,Closed,2531,"Within period" query filters for date fields
relates,New,5560,Changing System Time Zone Causes Issue Updates to Change Order

Admin Redmine さんが約4年前に更新

  • カテゴリRails support_44 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0