On Wed, 1 Aug 2001 14:21, Peter Donald wrote: > Hi, > > I finally got a chance to look at this - soz for the delay ;) > > On Mon, 30 Jul 2001 01:10, Bernhard Huber wrote: > > I was testing CronTimeTrigger and found a bug: > > Assume today is 29th July 2001 > > You set a cron time trigger to 5th Feb 2002, then > > CronTimeTrigger will set next time running to > > 5th March 2002, not 5th Feb 2002 > > hmmm. I can't seem to reproduce this. Maybe I don't understand something ;)
Yes I did. I mistakenly tested thinking that months were 1 based rather than zero based ;/ > > In order to solve that problem, I check if the m_month has enough > > day,if not i set next to max days of m_month, like: > > hmm. I am not sure I get you. What you are saying is if we ask for day 29 > in a 28 day month then we should set it to 28? Makes sense to me. > > However I can't see how it solves the above problem? I can see it now and have fixed it - thanks. Cheers, Pete *-----------------------------------------------------* | "Faced with the choice between changing one's mind, | | and proving that there is no need to do so - almost | | everyone gets busy on the proof." | | - John Kenneth Galbraith | *-----------------------------------------------------* --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
