LocalDateBackwardHandler doesn't work properly
yogi21jan opened this issue · 1 comments
yogi21jan commented
I am using Date calculator JDK API. I can see problem in LocalDateBackwardHandler.
Let's say 1/11/2018 and 2/11/2018 is a custom holiday and 3/11/2018 and 4/11/2018 are a holiday. I am trying to calculate a business date one day before 5/11/2018. But I am getting the next business date as 5/11/2018. Although I have instantiated LocalDateBackwardHandler. Problem is adjustDate(), which is implemented in LocalDateForwardHandler. LocalDateBackwardHandler doesn't have its own adjustDate().
So it doesn't calculate the business date properly
benoitx commented
Could you provide a unit testcase in a patch please?
Many thanks
…-----
Important Notice
This communication contains information that is considered
confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender and
delete the original
On 15 Nov 2018, at 10:27, Yogendra Sahoo ***@***.***> wrote:
I am using Date calculator JDK API. I can see problem in LocalDateBackwardHandler.
Let's say 1/11/2018 and 2/11/2018 is a custom holiday and 3/11/2018 and 4/11/2018 are a holiday. I am trying to calculate a business date one day before 5/11/2018. But I am getting the next business date as 5/11/2018. Although I have instantiated LocalDateBackwardHandler. Problem is adjustDate(), which is implemented in LocalDateForwardHandler. LocalDateBackwardHandler doesn't have its own adjustDate().
So it doesn't calculate the business date properly
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.