HangfireIO / Cronos

A fully-featured .NET library for working with Cron expressions. Built with time zones in mind and intuitively handles daylight saving time transitions
MIT License
1.01k stars 118 forks source link

Next Occurence returning the wrong month #45

Closed gagwithgaffer closed 2 years ago

gagwithgaffer commented 2 years ago

If you look at the configuration Ii have below using this library, I selected the following: "First Monday of each Month" (starting in April)

However the first occurence returns back the current month which is March. the same issue happens for each month of the year selected where I am expecting it to return next month, not the current month. This seems to be happening somehwere within the libray when using the get next occurence method.

I'm using library ver 0.71

image

gagwithgaffer commented 2 years ago

Aplogies, my own error and fixed now, thanks