-
Notifications
You must be signed in to change notification settings - Fork 187
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
Set database date data timezone #89
Comments
The workaround of my issue is to convert all dates to VARCHAR when getting them from database. Then it is possible to apply a date filter on EACH of them. I can not apply directly the date filter without converting the dates to VARCHAR because the dates are retrieved as Ruby date object by the jdbc input so they can not be filtered directly. This seems really painful as solution, as we can just have a parameter for the jdbc input to specify the timezone of the database dates. |
Closed by #95 |
Thank you for the fix. I think there is one dependency missing (I am totally new to Ruby): When I tried to run the master branch after installing it, I got this issue: The solution was then referred here: https://github.com/tzinfo/tzinfo/wiki/Resolving-TZInfo::DataSourceNotFound-Errors I added |
Fascinating. I wonder why it even worked for me and the testing infrastructure, without specifying it in the Gemspec. Please open this as a new issue and we'll add it in so it is guaranteed to be there. |
I am using the logstash jdbc-input plugin to import data from my database to Elasticsearch.
In the old jdbc river, I think that it was possible to set the timezone used by the database for date data. Is it possible to set it with the logstash jdbc plugin ?
For the moment the dates in my database are in UTC but the jdbc-plugin use the local timezone of my machine when exporting them and tries to convert it again in UTC so all my dates are wrong.
The text was updated successfully, but these errors were encountered: