Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

How to solve ActionView::Template::Error: Database missing time zone support for Etc/UTC in ReportsControllerTest Question

+2
−0

I ran tests (bin/rails test) and got

Error:
ReportsControllerTest#test_every_route_should_work_for_moderators:
ActionView::Template::Error: Database missing time zone support for Etc/UTC - see https://github.com/ankane/groupdate#for-mysql
    app/views/reports/users.html.erb:17:in `_app_views_reports_users_html_erb__3530160556563631482_308000'
    test/controllers/reports_controller_test.rb:25:in `block (2 levels) in <class:ReportsControllerTest>'
    test/controllers/reports_controller_test.rb:24:in `each'
    test/controllers/reports_controller_test.rb:24:in `block in <class:ReportsControllerTest>'

Searching for the error message only gave a site in Japanese with the exact error message, but I couldn't read it. Is it a big problem?

History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

1 answer

+2
−0

Your MySQL installation is missing timezone support for the groupdate gem that we use.

Run the following:

mysql_tzinfo_to_sql /usr/share/zoneinfo | sudo mysql -u root mysql

and you should be good to go.

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »