Pop-Up Thingie

Dreamer's Place
  • Home
  • Forum
  • Files
  • Log in

  1. Forum
  2. DOVE-Net
  3. Synchronet Programming
  • DDFileLister: Now support

    From Rob Swindell@VERT to GitLab note in main/sbbs on Fri Aug 16 18:28:00 2024
    https://gitlab.synchro.net/main/sbbs/-/merge_requests/453#note_5532

    This looks like an odd way to do this conversion to a time_t value.

    You're aware the Date object has multiple constructors? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/Date

    So, I think you could boil function this down to a single line that doesn't involve any string formatting or parsing:
    `return new Date(pYear, pMonthNum - 1, pDayNum, pHour, pMinute, pSecond === undefined ? 0 : pSecond);`

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Fri Aug 16 18:28:00 2024
    https://gitlab.synchro.net/main/sbbs/-/merge_requests/453#note_5533

    You should use the `system.temp_dir` for temporary files instead.

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Fri Aug 16 20:55:00 2024
    https://gitlab.synchro.net/main/sbbs/-/merge_requests/453#note_5535

    What is a "TimeTF"?

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From echicken@VERT to GitLab note in main/sbbs on Fri Aug 16 21:01:00 2024
    https://gitlab.synchro.net/main/sbbs/-/merge_requests/453#note_5536

    Or instead of this function just do:

    ```js
    var t = Date.parse(format('%s-%s-%sT%s:%s', yearStr, monthNumStr, dayNumStr, hourStr, minuteStr)) / 1000;
    if (isNaN(t)) spontaneouslyCombustRatherThanSetIncorrectScanPointerTime();
    ```

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Eric Oulashin@VERT to GitLab note in main/sbbs on Fri Aug 16 21:26:00 2024
    https://gitlab.synchro.net/main/sbbs/-/merge_requests/453#note_5537

    TimeTFFrom.. was a typo.
    Sometimes it would be good to find better documentation on things, such as the Date class constructor in this case..

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • Who's Online

  • Recent Visitors

    • Guest
      Fri May 9 17:48:56 2025
      from System via Raw
    • Guest
      Wed May 7 03:32:28 2025
      from /bin/busybox Cat /proc/self/ex via Raw
    • Guest
      Sun May 4 22:59:17 2025
      from System via Raw
    • Guest
      Fri May 2 16:38:57 2025
      from System via Raw
  • System Info

    Sysop: Dreamer
    Location: Nederland, Texas
    Users: 2
    Nodes: 4 (0 / 4)
    Uptime: 87:51:22
    Calls: 19
    Calls today: 19
    Messages: 19,226
    Posted today: 10

© Dreamer's Place, 2025