Vote #71590
未完了Cannot get redmine to store datetimes as UTC into database
ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Database_21
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:
0%
予定工数:
Redmineorg_URL:
category_id:
21
version_id:
0
issue_org_id:
10577
author_id:
295
assigned_to_id:
0
comments:
0
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
説明
Enabling the following setting in environment.rb seems to make no difference? Redmine continues to push datetimes into the database using local timezone. Is something else in redmine overriding the default way that rails persists datetimes?
config.active_record.default_timezone = :utc
Environment: ruby 1.8.7, rails 2.3.14, postgres 9.1.3 - native ruby adapter. Same behaviour observed with jruby and the postgres jdbc driver.
いいね!0