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

Wrong rounding of datetime #275

Open
SebCav opened this issue Dec 12, 2018 · 0 comments
Open

Wrong rounding of datetime #275

SebCav opened this issue Dec 12, 2018 · 0 comments

Comments

@SebCav
Copy link

SebCav commented Dec 12, 2018

Hi,
in src/db_adapters/boss_db_adapter_pgsql.erl at line 456 and in src/boss_record_lib.erl at line 155 I see that a datetime like {{D1, D2, D3}, {T1, T2, T3} with T3 float is rounded with {{D1, D2, D3}, {T1, T2, round(T3)}} to get an Erlang-standard datetime. Isn't this wrong when T3 > 59.5 ? Isn't it going to round to 60 seconds?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant