Subj : JS Object save_msg() To : deon From : Digital Man Date : Tue Dec 17 2024 17:36:13 Re: JS Object save_msg() By: deon to Digital Man on Wed Dec 18 2024 12:26 pm > OK, I'm convinced there is something messed up with time recording. So I'll > start with one piece at a time. I appreciate that. :-) > I'm storing messages with save_msg(), and I am *not* setting date, > when_imported* or when_written*. > > According to the OS, the time is: > > root@ansitex-dev:/opt/sbbs/mods/ansitex# date > > Wed Dec 18 12:08:51 AEDT 2024 > > The message saved is record with this: > when_written 6762209C 0000 Wed Dec 18 12:08:44 2024 UTC > when_imported 6762209C 0000 Wed Dec 18 12:08:44 2024 UTC > > This is not correct. What do you have set in SCFG->System->Local Time Zone? This is the default time zone information used by MsgBase.save_msg() and stored in the message header (if not otherwise specified in the message header object). > Why isnt timezone information being used when storing the current time? (It > would seem apparent that Sync knows the time zone to display the statement > "hrs from now") It should be storing whatever you have configured in SCFG->System->Local Time Zone. -- digital man (rob) This Is Spinal Tap quote #12: Nigel Tufnel: Well, I don't know - wh-wh-... what're the hours? Norco, CA WX: 72.1øF, 18.0% humidity, 4 mph NNW wind, 0.00 inches rain/24hrs --- SBBSecho 3.23-Linux * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705) .