Just a sample of the Echomail archive
Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.
|    SYNCHRONET    |    Rob Swindell fetishistic worship forum    |    43,341 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 40,836 of 43,341    |
|    deon to Digital Man    |
|    JS Object save_msg()    |
|    17 Dec 24 14:50:54    |
   
   TZUTC: 1100   
   MSGID: 50189.dove-syncdisc@12:1/2 2bc6ef2b   
   PID: Synchronet 3.20a-Linux master/7b932f63e Dec 9 2023 GCC 10.2.1   
   TID: SBBSecho 3.23-Linux master/bbf9d5eac Dec 14 2024 GCC 12.2.0   
   COLS: 80   
   BBSID: ALTERANT   
   CHRS: CP437 2   
   NOTE: FSEditor.js v1.105   
   Hey DM,   
      
   Need some clarification - I've noticed an unexpected date when saving a   
   message (when called from CLI jsexec - havent checked when the terminal server   
   calling the script).   
      
   I'm calling save_msg(), using a header with a date that has:   
      
   RFC-822 format (as per the https://synchro.net/docs/jsobjs.html), and that   
   results in a message time of:   
      
   date = strftime("%a, %d %b %Y %I:%M:%S %z",time());   
   // Tue, 17 Dec 2024 02:32:19 +1100   
      
   (I know time() is implied with strftime()).   
      
   when_written 67604803 0294 Tue Dec 17 02:32:19 2024 UTC+11:00   
   when_imported 6760F0C3 0000 Tue Dec 17 14:32:19 2024 UTC   
      
   I also know time() is returning the correct epoch time (I've compared it with   
   https://www.epochconverter.com/)   
      
   a) Shouldnt the strftime() call return "14:32:19 +1100" - which would fix the   
   when_written value. (The message renders with a "written 12hrs ago" statement).   
      
   b) Shouldnt the when_imported by "02:32:19 UTC" (if it is recording timestamps   
   in UTC, or 14:32:19 UTC+1100 if rendering local time)?   
      
   c) AU is GMT+11 right now (summer time, normally GMT+10), so system time is   
   14:32 - not sure when strftime is returning 02:32 (12 hrs earlier)   
      
   Incidently, I used %Z in the strftime() call (instead of %z), which results in   
   AEDT (right now) - and it resulted in a when_written of:   
      
   when_written 3A24FDD0 0000 Thu Nov 30 00:00:00 2000 UTC   
      
   date = strftime("%a, %d %b %Y %I:%M:%S %Z");   
   // Tue, 17 Dec 2024 02:28:01 AEDT   
      
   I guess save_msg() date parsing doesnt understand AEDT?   
      
      
   ...лоеп   
      
   ---   
    ю Synchronet ю AnsiTEX bringing back videotex but with ANSI   
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)   
   SEEN-BY: 10/0 1 102/401 103/1 17 705 105/81 106/201 124/5016 128/187   
   SEEN-BY: 153/7715 218/0 1 215 601 700 840 860 880 226/30 227/114 229/110   
   SEEN-BY: 229/114 206 317 400 426 428 550 700 705 266/512 280/464 282/1038   
   SEEN-BY: 291/111 301/1 320/219 322/757 342/200 396/45 460/58 633/280   
   SEEN-BY: 712/848 902/26 5075/35   
   PATH: 103/705 218/700 229/426   
      
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca