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

Negative Seconds with fractional seconds had the wrong sign #17

Merged
merged 3 commits into from Mar 15, 2021

Conversation

yewtc
Copy link
Contributor

@yewtc yewtc commented Sep 14, 2018

For an negative interval if, the seconds part has a fractional part. The existing code will consider the seconds to be positive - causing the result to be up to about 2 minutes out, the added test without the fix gives
prove.txt

@lestrrat lestrrat merged commit b027aa4 into lestrrat-p5:master Mar 15, 2021
lestrrat added a commit that referenced this pull request Mar 15, 2021
Changelog diff is:

diff --git a/Changes b/Changes
index ff0d37d..ac8a229 100644
--- a/Changes
+++ b/Changes
@@ -1,6 +1,8 @@
 Revision history for Perl extension DateTime::Format::Pg.
 
 {{$NEXT}}
+
+0.16014 2021-03-15T13:40:40Z
     - Fix handling for fractional seconds (#17)
     - Accept concatenated dates (#18)
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

Successfully merging this pull request may close these issues.

None yet

3 participants