プロジェクト

全般

プロフィール

Vote #71590

未完了

Cannot get redmine to store datetimes as UTC into database

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

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Database_21
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
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:
ステータス-->[New]

説明

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.

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

  • カテゴリDatabase_21 にセット

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

いいね!0
いいね!0