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,845 of 43,341    |
|    Digital Man to deon    |
|    JS Object save_msg()    |
|    17 Dec 24 11:44:44    |
   
   TZUTC: -0800   
   MSGID: 53250.sync@1:103/705 2bc7daae   
   REPLY: 50194.dove-syncdisc@12:1/2 2bc7764c   
   PID: Synchronet 3.20a-Win32 master/9f3d653e0 Dec 10 2024 MSC 1922   
   TID: SBBSecho 3.23-Linux master/bbf9d5eac Dec 14 2024 GCC 12.2.0   
   COLS: 80   
   BBSID: VERT   
   CHRS: CP437 2   
   NOTE: FSEditor.js v1.105   
    Re: JS Object save_msg()   
    By: deon to Digital Man on Wed Dec 18 2024 12:27 am   
      
    > > > date = strftime("%a, %d %b %Y %I:%M:%S %z",time());   
    > > > // Tue, 17 Dec 2024 02:32:19 +1100   
    >   
    > > MsgBase.save_msg() will using the current date/time and time zone when   
    > > saving a message. You have a reason to not do this?   
    >   
    > Yes - I'm setting the time of some messages to the same time of a file   
    > (obtained by new File().date - which also is returning a time_t)   
      
   Then you'd want to set the when_written_time property of the message header   
   object being passed to MsgBase.save_msg() with that time_t value.   
      
    > > You shouldn't use the 'date' property unless you have to. Either use the   
    > > default (current date/time and zone) are set the when_written_time and   
    > > when_written_zone header fields instead.   
    >   
    > OK, I'll try. What is a valid use case of using the "date" property - I'm   
    > curious since it is a valid argument?   
      
   The "date" property is used when importing messages from an RFC822-formatted   
   source/protocol (e.g. SMTP, NNTP, IMAP).   
      
    > > > date = strftime("%a, %d %b %Y %I:%M:%S %z",time());   
    > > > // Tue, 17 Dec 2024 02:32:19 +1100   
    > > > 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).   
    >   
    > I'm still wondering why strftime() is still returning an invalid time - out   
    > by the timezone plus 1 hr?   
      
   The JS strftime() function is just a wrapper for the C run-time library   
   function of the same name. So depending on your OS, you can either run "man   
   strftime" or see https://learn.microsoft.com/en-us/cpp/c-runtime   
   library/reference/strftime-wcsftime-strftime-l-wcsftime-l to read more up on   
   how strftime() works for your platform.   
   --    
    digital man (rob)   
      
   Synchronet/BBS Terminology Definition #20:   
   DCE = Data Communications Equipment (or Deuce, Stephen Hurd)   
   Norco, CA WX: 73.6øF, 27.0% humidity, 1 mph SE wind, 0.00 inches rain/24hrs   
   --- SBBSecho 3.23-Linux   
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)   
   SEEN-BY: 103/705 105/81 106/201 124/5016 128/187 153/757 7715 154/10   
   SEEN-BY: 154/30 203/0 218/700 221/0 226/30 227/114 229/110 114 206   
   SEEN-BY: 229/317 400 426 428 550 700 705 240/1120 5832 266/512 280/464   
   SEEN-BY: 280/5003 5006 282/1038 291/111 292/8125 301/1 310/31 320/219   
   SEEN-BY: 322/757 341/66 234 342/200 396/45 423/120 460/58 256 1124   
   SEEN-BY: 467/888 633/280 712/848 770/1 902/26 5020/400 5054/30 5075/35   
   PATH: 103/705 280/464 460/58 229/426   
      
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca