プロジェクト

全般

プロフィール

Vote #71502

完了

Ruby 1.9.3 Time Zone setting Internal error.

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

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

0%

予定工数:
category_id:
33
version_id:
40
issue_org_id:
10442
author_id:
30580
assigned_to_id:
1
comments:
6
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I tested on Redmine trunk r9237.

  • CentOS 6 x86
  • Ruby 1.9.3p125
  • Rails 2.3.14
  • sqlite3 1.3.5

login admin

select "My account"

select "Time Zone : (GMT+9:00) Tokyo"

click Save

Internal error

Processing MyController#account (for 192.168.56.1 at 2012-03-10 21:42:39) [GET]
  Parameters: {"controller"=>"my", "action"=>"account"}
Rendering template within layouts/base
Rendering my/account

ActionView::TemplateError (undefined method `new0' for DateTime:Class) on line #4 of app/views/my/_sidebar.html.erb:
1: 

<%=l(:label_my_account)%>

2: 3:

<%=l(:field_login)%>: <%= link_to_user(@user, :format => :username) %>
4: <%=l(:field_created_on)%>: <%= format_time(@user.created_on) %>

5: 6: 7:

<%= l(:label_feeds_access_key) %>

(eval):2:in `to_date' lib/redmine/i18n.rb:40:in `format_date' lib/redmine/i18n.rb:48:in `format_time' app/views/my/_sidebar.html.erb:4 app/views/my/account.html.erb:48:in `block in _run_erb_app47views47my47account46html46erb' app/helpers/application_helper.rb:1045:in `content_for' app/views/my/account.html.erb:47 :10:in `synchronize' passenger (3.0.11) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request' passenger (3.0.11) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request' passenger (3.0.11) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop' passenger (3.0.11) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler' passenger (3.0.11) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `block in handle_spawn_application' passenger (3.0.11) lib/phusion_passenger/utils.rb:479:in `safe_fork' passenger (3.0.11) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application' passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:180:in `start' passenger (3.0.11) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start' passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:219:in `block (2 levels) in spawn_rails_application' passenger (3.0.11) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add' passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:214:in `block in spawn_rails_application' passenger (3.0.11) lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize' :10:in `synchronize' passenger (3.0.11) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application' passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application' passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application' passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' passenger (3.0.11) helper-scripts/passenger-spawn-server:99:in `
' Rendering /opt/Redmine/redmine.d/trunk/public/500.html (500 Internal Server Error)

journals

--------------------------------------------------------------------------------
FYI.
https://www.chiliproject.org/issues/903
--------------------------------------------------------------------------------
I tried Ruby 1.9.2 now. But Ruby 1.9.2 don't reproduce this problem.
I think Ruby 1.9.3 only problem, too.
--------------------------------------------------------------------------------
Adding @gem 'tzinfo'@ to the @Gemfile@ did the trick for me.
--------------------------------------------------------------------------------
Etienne Massip wrote:
> Adding @gem 'tzinfo'@ to the @Gemfile@ did the trick for me.

Me too. I added to @Gemfile@ as follows.

<pre>
--- Gemfile (revision 9237)
+++ Gemfile (working copy)
@@ -4,6 +4,7 @@
gem "i18n", "~> 0.4.2"
gem "coderay", "~> 1.0.0"
gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
+gem "tzinfo", "~> 0.3.31"

# Optional gem for LDAP authentication
group :ldap do
</pre>
I think this problem was fixed by this setting.
--------------------------------------------------------------------------------
Fixed in r9244. Thanks.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリRuby support_33 にセット
  • 対象バージョン1.4.0_40 にセット

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

いいね!0
いいね!0