Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with pt-BR timezone #103

Open
phoebusnetto opened this issue Mar 26, 2015 · 0 comments
Open

Problem with pt-BR timezone #103

phoebusnetto opened this issue Mar 26, 2015 · 0 comments

Comments

@phoebusnetto
Copy link

I found a bug when trying to update Bookings and checked that the problem is with the TIME format. I tried with format 'HH:MM h', the last 'h' is a suffix for "hours" on pt-BR timezone format.

I got the StackTrace:


Bookings controller exception: C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/2.0.0/time.rb:327:in `parse'
C:/Bitnami/redmine-2.6.2-0/apps/redmine/htdocs/plugins/redmine_time_tracker/app/helpers/time_trackers_helper.rb:73:in `parse_localised_time_string'
C:/Bitnami/redmine-2.6.2-0/apps/redmine/htdocs/plugins/redmine_time_tracker/app/controllers/time_bookings_controller.rb:70:in `update'
C:/Bitnami/redmine-2.6.2-0/apps/redmine/htdocs/plugins/redmine_time_tracker/app/controllers/time_bookings_controller.rb:15:in `block in actions'
C:/Bitnami/redmine-2.6.2-0/apps/redmine/htdocs/plugins/redmine_time_tracker/app/controllers/time_bookings_controller.rb:14:in `each'
C:/Bitnami/redmine-2.6.2-0/apps/redmine/htdocs/plugins/redmine_time_tracker/app/controllers/time_bookings_controller.rb:14:in `actions'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/abstract_controller/base.rb:167:in `process_action'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_controller/metal/rendering.rb:10:in `process_action'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:491:in `_run__846884768__process_action__266034424__callbacks'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:405:in `__run_callback'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:81:in `run_callbacks'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/abstract_controller/callbacks.rb:17:in `process_action'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_controller/metal/rescue.rb:29:in `process_action'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/notifications.rb:123:in `block in instrument'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/notifications.rb:123:in `instrument'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/activerecord-3.2.21/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/abstract_controller/base.rb:121:in `process'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/abstract_controller/rendering.rb:45:in `process'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_controller/metal.rb:203:in `dispatch'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_controller/metal.rb:246:in `block in action'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb:73:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb:36:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb:608:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/rack-openid-1.4.2/lib/rack/openid.rb:98:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/request_store-1.0.5/lib/request_store/middleware.rb:9:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/conditionalget.rb:35:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_dispatch/middleware/head.rb:14:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_dispatch/middleware/flash.rb:242:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_dispatch/middleware/cookies.rb:341:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/activerecord-3.2.21/lib/active_record/query_cache.rb:64:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:405:in `_run__55989025__call__914489645__callbacks'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:405:in `__run_callback'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:81:in `run_callbacks'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/railties-3.2.21/lib/rails/rack/logger.rb:32:in `call_app'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/railties-3.2.21/lib/rails/rack/logger.rb:16:in `block in call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/tagged_logging.rb:22:in `tagged'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/railties-3.2.21/lib/rails/rack/logger.rb:16:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_dispatch/middleware/request_id.rb:22:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/actionpack-3.2.21/lib/action_dispatch/middleware/static.rb:83:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:143:in `pass'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:155:in `invalidate'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:71:in `call!'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/railties-3.2.21/lib/rails/engine.rb:484:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/railties-3.2.21/lib/rails/application.rb:231:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/railties-3.2.21/lib/rails/railtie/configurable.rb:30:in `method_missing'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/urlmap.rb:64:in `block in call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `each'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `call'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/thin-1.6.1-x86-mingw32/lib/thin/connection.rb:82:in `block in pre_process'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/thin-1.6.1-x86-mingw32/lib/thin/connection.rb:80:in `catch'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/thin-1.6.1-x86-mingw32/lib/thin/connection.rb:80:in `pre_process'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/thin-1.6.1-x86-mingw32/lib/thin/connection.rb:55:in `process'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/thin-1.6.1-x86-mingw32/lib/thin/connection.rb:41:in `receive_data'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3-x86-mingw32/lib/eventmachine.rb:187:in `run_machine'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3-x86-mingw32/lib/eventmachine.rb:187:in `run'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/thin-1.6.1-x86-mingw32/lib/thin/backends/base.rb:73:in `start'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/thin-1.6.1-x86-mingw32/lib/thin/server.rb:162:in `start'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/thin-1.6.1-x86-mingw32/lib/thin/controllers/controller.rb:87:in `start'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/thin-1.6.1-x86-mingw32/lib/thin/runner.rb:200:in `run_command'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/thin-1.6.1-x86-mingw32/lib/thin/runner.rb:156:in `run!'
C:/Bitnami/redmine-2.6.2-0/ruby/lib/ruby/gems/2.0.0/gems/thin-1.6.1-x86-mingw32/bin/thin:6:in `<top (required)>'
C:/Bitnami/redmine-2.6.2-0/apps/redmine/htdocs/bin/thin:16:in `load'
C:/Bitnami/redmine-2.6.2-0/apps/redmine/htdocs/bin/thin:16:in `<main>'

I already solved (not the elegant way) this problem, but don't know how to push it for admin analysis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant