TIP: Click on subject to list as thread! ANSI
echo: synchronet
to: NELGIN
from: DIGITAL MAN
date: 2020-12-14 21:06:00
subject: Re: Event timing

  Re: Re: Event timing
  By: Nelgin to Digital Man on Mon Dec 14 2020 01:38 am

 > Digital wrote:
 > >   Re: Re: Event timing
 > >   By: Nelgin to Digital Man on Sun Dec 13 2020 03:31 pm
 >
 > >  > >  > Hello All,
 >
 > >  > >  > When I log in I am seeing a message that there is an upcoming
 > >  > >  > event on
 > >  > >  > Monday Nov 7 at 5:00 AM and my time has been reduced.
 >
 > >  > >  > I do have a forced MSGMAINT event that runs Sunday morning at 5:00
 > >  > >  > AM and that event did run successfully at 5:00 AM this morning.
 >
 > >  > >  > Seems like something is not reading the time correctly. Is anyone
 > >  > >  > else
 > >  > >  > seeing that?
 >
 > >  > > This sounds like a bug that was created and fixed on Nov-29.
 >
 > >  > When I just logged in, I got similar.
 >
 > >  > Your time has been reduced due to an upcoming event on Mon Dec 14 2020
 > >  > 05:00:00
 >
 > >  > and I updated last night.
 >
 > > But Dec 14 hasn't happened yet. So that doesn't sound like a bug.
 >
 > However I don't have any jobs scheduled that are set to force users offline
 > on Monday at 5am. The only one I have is Sunday at 5am.
 >
 > I seem to recall we had this dicussion in the past but the reason or
 > solution elutes me.

Yeah, think it's this line in data.cpp:
    if(tm.tm_mday==last_tm.tm_mday && tm.tm_mon==last_tm.tm_mon)
        thisevent+=24L*60L*60L;     /* already ran today, so add 24hrs */

A naive solution would be to just ignore the event (it already ran today), but
that doesn't help us for an event that runs *every* day, say at midnight (so
it's going to run technically tomorrow, but that might be coming up soon). I'll
add this to the todo list.
-- 
                                            digital man

Synchronet "Real Fact" #39:
Synchronet first supported Windows NT v6.x (a.k.a. Vista/Win7) w/v3.14a (2006).
Norco, CA WX: 55.6øF, 38.0% humidity, 2 mph S wind, 0.02 inches rain/24hrs
--- SBBSecho 3.11-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.