• This should have correct TZ?

    From apam@VERT/HAPPYLND to All on Tue Nov 16 19:18:08 2021
    I added the WhenWritten field, haven't added when exported or when
    imported yet because it occured to me that they might be different to the
    when written timezone.

    Anyway, I'm hoping this message displays the correct TZ for synchronet
    sysops being subjected to my messages :)

    Andrew

    --
    |03Andrew Pamment |08(|11apam|08)
    |13Happy|10Land |14v2.0|08!|07

    ---
    ž Talisman ž HappyLand v2.0 - telnet://happylandbbs.com:11892/
  • From Digital Man@VERT to apam on Tue Nov 16 01:29:11 2021
    Re: This should have correct TZ?
    By: apam to All on Tue Nov 16 2021 11:18 am

    I added the WhenWritten field, haven't added when exported or when
    imported yet because it occured to me that they might be different to the when written timezone.

    Anyway, I'm hoping this message displays the correct TZ for synchronet sysops being subjected to my messages :)

    Not yet:
    when_written 619403F0 0000 Tue Nov 16 11:18:08 2021 UTC

    ŚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄśśśś
    ³ Subj: This should have correct TZ?
    ³ To : All
    ³ From: apam (HAPPYLND)
    ³ Date: Tue Nov 16 2021 11:18 am UTC (9.8 hours from now) ĄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄśśśśśś
    --
    digital man

    Rush quote #47:
    All of us get lost in the darkness, dreamers learn to steer by the stars
    Norco, CA WX: 72.3ųF, 38.0% humidity, 5 mph N wind, 0.00 inches rain/24hrs
    ---
    ž Synchronet ž Vertrauen ž Home of Synchronet ž [vert/cvs/bbs].synchro.net
  • From apam@VERT/HAPPYLND to Digital Man on Tue Nov 16 20:58:02 2021
    Not yet:
    when_written 619403F0 0000 Tue Nov 16 11:18:08 2021 UTC

    Ok, I'm at a bit of a loss here.

    WhenWritten: 20211116124208+1000

    Is from a headers.dat i just posted and intercepted..

    Do I need a trailing space?

    I'm probably totally wrong with the following, and it's probably
    something simple i've missed on my side but...

    Looking at the synchronet side, here:

    https://ftp.synchro.net/main/sbbs/-/blob/master/src/sbbs3/qwktomsg.cpp

    I notice it sets the timezone from the ISO date/time str, then checks for
    the location hex string with sscanf

    I'm not an expert on sscanf (I've hardly ever used the scanf functions)
    but I think:

    sscanf(p,"%*s %s",zone);

    would ignore the first string (the iso date/time) look for a space, then
    import a string which I guess would be null as it doesn't exist.

    So, if it doesn't have the space, would zone remain uninitialized? And
    possibly have junk in it that doesn't parse with strtoul? and lead to a timezone of 00:00

    Like I said I'm probably wrong.

    Andrew

    --
    |03Andrew Pamment |08(|11apam|08)
    |13Happy|10Land |14v2.0|08!|07

    ---
    ž Talisman ž HappyLand v2.0 - telnet://happylandbbs.com:11892/
  • From Digital Man@VERT to apam on Tue Nov 16 05:26:41 2021
    Re: This should have correct TZ?
    By: apam to Digital Man on Tue Nov 16 2021 12:58 pm

    Not yet:
    when_written 619403F0 0000 Tue Nov 16 11:18:08 2021 UTC

    Ok, I'm at a bit of a loss here.

    WhenWritten: 20211116124208+1000

    Is from a headers.dat i just posted and intercepted..

    Do I need a trailing space?

    I'm probably totally wrong with the following, and it's probably
    something simple i've missed on my side but...

    Looking at the synchronet side, here:

    https://ftp.synchro.net/main/sbbs/-/blob/master/src/sbbs3/qwktomsg.cpp

    I notice it sets the timezone from the ISO date/time str, then checks for the location hex string with sscanf

    I'm not an expert on sscanf (I've hardly ever used the scanf functions)
    but I think:

    sscanf(p,"%*s %s",zone);

    would ignore the first string (the iso date/time) look for a space, then import a string which I guess would be null as it doesn't exist.

    So, if it doesn't have the space, would zone remain uninitialized? And possibly have junk in it that doesn't parse with strtoul? and lead to a timezone of 00:00

    Like I said I'm probably wrong.

    No, I think you're right (zone is uninitialized and will remain so). Of course, it's too late for all the builds of sbbs that are already out in the wild, but I will still fix this. So it's probably best if you just include the UTC offset in 16-bit hexadecimal too then, just be the most compatible.
    --
    digital man

    Breaking Bad quote #31:
    Feels like one of those cones put on dogs so they don't lick their own balls. Norco, CA WX: 63.5ųF, 48.0% humidity, 0 mph SSE wind, 0.00 inches rain/24hrs ---
    ž Synchronet ž Vertrauen ž Home of Synchronet ž [vert/cvs/bbs].synchro.net
  • From apam@VERT/HAPPYLND to Digital Man on Wed Nov 17 01:31:10 2021
    No, I think you're right (zone is uninitialized and will remain so).
    Of course, it's too late for all the builds of sbbs that are already
    out in the wild, but I will still fix this. So it's probably best if
    you just include the UTC offset in 16-bit hexadecimal too then, just
    be the most compatible.

    Ok, Hopefully this message should have it... I'm not counting on it being correct, but hopeful :)

    Andrew

    --
    |03Andrew Pamment |08(|11apam|08)
    |13Happy|10Land |14v2.0|08!|07

    ---
    ž Talisman ž HappyLand v2.0 - telnet://happylandbbs.com:11892/
  • From apam@VERT/HAPPYLND to apam on Wed Nov 17 02:03:00 2021
    Ok, Hopefully this message should have it... I'm not counting on it
    being
    correct, but hopeful :)

    Might help if i do it in hexidecimal.

    Andrew

    --
    |03Andrew Pamment |08(|11apam|08)
    |13Happy|10Land |14v2.0|08!|07

    ---
    ž Talisman ž HappyLand v2.0 - telnet://happylandbbs.com:11892/
  • From Digital Man@VERT to apam on Tue Nov 16 20:32:33 2021
    Re: This should have correct TZ?
    By: apam to apam on Tue Nov 16 2021 06:03 pm

    Ok, Hopefully this message should have it... I'm not counting on it
    being
    correct, but hopeful :)

    Might help if i do it in hexidecimal.

    This one looks good:
    ŚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄśśśś ÜŪŪŪŪŪß
    ³ Subj: This should have correct TZ? ŽßŪŪÜŪÜŻ
    ³ To : apam ŪŪŪßßßŪ
    ³ From: apam (HAPPYLND) ßŪ²²²Ż
    ³ Date: Tue Nov 16 2021 06:03 pm UTC+10:00 (12.5 hours ago) ÜÜŪŪÜÜ ĄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄśśśśśś ŪŻŪŪŪŽ
    --
    digital man

    Rush quote #26:
    Too many hands on my time, too many feelings, too many things on my mind
    Norco, CA WX: 73.0ųF, 38.0% humidity, 4 mph NNW wind, 0.00 inches rain/24hrs ---
    ž Synchronet ž Vertrauen ž Home of Synchronet ž [vert/cvs/bbs].synchro.net
  • From apam@VERT/HAPPYLND to Digital Man on Wed Nov 17 17:18:00 2021
    This one looks good:

    Great! Thanks!

    Andrew

    --
    |03Andrew Pamment |08(|11apam|08)
    |13Happy|10Land |14v2.0|08!|07

    ---
    ž Talisman ž HappyLand v2.0 - telnet://happylandbbs.com:11892/