Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

ActiveRecord default timezone

Open
#43 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
rails, ruby
Domain
backend, databases

Research direction

Start by locating where the plugin configures ActiveRecord and where database values are read. Inspect the ActiveRecord::Base.default_timezone setting and verify behavior with the supported database configurations. Done means reads no longer force UTC when the database timezone is set to local.

Written by the indexing model from the issue text.

Description

enhancement

Hi,

In reading from DB the time is always set to UTC, disregarding the DB setting.

To solve the issue, I tried to this line in the plugin:
ActiveRecord::Base.default_timezone = :local

It worked.

Regards

Dominant language
Ruby
Stars
112
Forks
58
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fluent/fluent-plugin-sql

All issues in fluent/fluent-plugin-sql

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.