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

[10.0][FIX]date fields as date #298

Merged
merged 1 commit into from
Apr 2, 2020

Conversation

AaronHForgeFlow
Copy link
Contributor

I am having issues when querying date fields. They are converted to datetime in the views (even if I select date as field type). Consequently the timezone is applied. Consequently dates are shown in different dates.

For example: invoice date 01-01-2019 -> to datetime: 01-01-2019 00:00:00 UTC -> If I run the report in a place with timezone UTC-X I get invoice date 31-12-2018 --> Not correct.

The solution here seems not to affect datetime fileds as they are queried as timestamp without time zone. However I am not sure this works for every use case, so I'd appreciate a lot opinions of people that use this module frequently.

Thank you!

@AaronHForgeFlow
Copy link
Contributor Author

Any opinion is welcome 🍬

@dreispt
Copy link
Sponsor Member

dreispt commented Apr 2, 2020

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 10.0-ocabot-merge-pr-298-by-dreispt-bump-patch, awaiting test results.

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@OCA-git-bot OCA-git-bot merged commit e39f45b into OCA:10.0 Apr 2, 2020
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 69a7bea. Thanks a lot for contributing to OCA. ❤️

@MiquelRForgeFlow MiquelRForgeFlow deleted the 10.0-fix-bi_sql_editor branch April 2, 2020 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants