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

Problem With February Montly Schedule #138

Closed
netrevisanto opened this issue Jan 30, 2017 · 2 comments
Closed

Problem With February Montly Schedule #138

netrevisanto opened this issue Jan 30, 2017 · 2 comments

Comments

@netrevisanto
Copy link

Hey Guys, thanks for the beautiful work with this lib. We are trying to set up a monthly scheduling task.
We are having an issue, with the On comand, when working with Monthly execution:

var inicio = new DateTime(2017. 1,30); JobManager.AddJob(acao, (s) => s.WithName(identificacao).ToRunOnceAt(inicio).AndEvery(intervalo).Months().On(inicio.Day).At(inicio.Hour, inicio.Minute));

When the On() method is called, the date of nextExecution is March 2nd, and it should be in the very last day of next month, Feb 28th.

I know if i can use the At() method in the Months() chain, we could have success, but the At method waits a MonthOnDayOfMonthUnit to do it, and we can see that only the On() method returns it.

Can you guys point me at right direction?

@tallesl
Copy link
Contributor

tallesl commented Apr 23, 2017

Hi, sorry for the long delay.

It was a bug, I just fixed. I let you know here when it's published.

@tallesl
Copy link
Contributor

tallesl commented May 13, 2017

Just published on nuget.org, version 5.2.0.

This issue was closed.
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

2 participants