svendiedrichsen / jollyday

Jollyday - A holiday API
Other
189 stars 114 forks source link

LocalDateBackwardHandler doesn't work properly #83

Closed yogi21jan closed 5 years ago

yogi21jan commented 5 years ago

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

svendiedrichsen commented 5 years ago

@yogi21jan I'm not aware of these LocalDateForwardHandler and LocalDateBackwardHandler classes. Are you sure you are posting this in the correct project? Can you provide some sample code to highlight the problem?

yogi21jan commented 5 years ago

Yes, My mistake i put in wrong repository

svendiedrichsen commented 5 years ago

No problem.