-
Notifications
You must be signed in to change notification settings - Fork 58
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
ActiveRecord default timezone #43
Comments
Could you send a PR? |
Hi, |
Fixes issue fluent#43
Fixes issue fluent#43 Signed-off-by: Johan Sjölin <[email protected]>
@Sjolus 's patch solves my problem, |
Same issue for output plugin as well. Active record automatically fills the columns like "created_at", "updated_at". The time format seems to be UTC with no timezone info, hence UTC time is erroneously logged as local time. |
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
The text was updated successfully, but these errors were encountered: