You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2013/10/10 22:57:38 UTC
[Bug 55649] New: ATP - WORKDAY Function returns incorrect date
https://issues.apache.org/bugzilla/show_bug.cgi?id=55649
Bug ID: 55649
Summary: ATP - WORKDAY Function returns incorrect date
Product: POI
Version: unspecified
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: POI Overall
Assignee: dev@poi.apache.org
Reporter: stuart.donald@ibboost.com
Created attachment 30920
--> https://issues.apache.org/bugzilla/attachment.cgi?id=30920&action=edit
Patch with Unit Tests and Fix
When spanning a weekend, or the start date is a weekend, the WORKDAY function
returns an incorrect result. There are probably a lot of other circumstances
where it could have returned an incorrect result.
As an example
WORKDAY(DATE(2013,09,30),-1)
should return 2013/09/27
but actually returns 2013/09/24
I have attached a patch which includes some new Unit Tests to reproduce the
issue, and also a fix for the function to make the tests pass.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 55649] ATP - WORKDAY Function returns incorrect date
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55649
Cédric Walter <ce...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
OS| |All
--- Comment #1 from Cédric Walter <ce...@gmail.com> ---
Thanks for your patch, it has been reviewed and merged in trunk in r1531124
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org