• TZUTC stuff

    From apam@21:1/125.99 to All on Wed Oct 9 15:37:42 2019
    Hi

    So I added the timezone utc stuff to JAM message bases in magicka.. it
    isn't implemented in SQ3 message bases.

    It might not work with daylight savings, it also might not work in UTC-?? timezones.

    Also, I think in it's current state I've broken OpenIndiana (Solaris)

    It detects your computers Timezone settings, so there is nothing to
    configure.

    It's experimental, but it seems to work for me in Queensland. Hope it
    works for you.

    Andrew

    --- MagickaBBS v0.12alpha (Linux/armv7l)
    * Origin: Twilight BBS (21:1/125.99)
  • From Oli@21:1/151 to apam on Wed Oct 9 09:19:48 2019
    It might not work with daylight savings, it also might not work in
    UTC-?? timezones.

    from the sources:
    snprintf(buffer, 256, "TZUTC: %02d%02d", offhour, offmin);

    this will return somthing like -700 for negative timezones. I think this should
    work better:

    snprintf(buffer, 256, "TZUTC: %0*d%02d", (offhour < 0) ? 3 : 2, offhour, offmin);





    * Origin: 🌈 (21:1/151)
  • From apam@21:1/125.99 to Oli on Wed Oct 9 19:18:16 2019
    this will return somthing like -700 for negative timezones.

    Thanks, I didn't realize the - was included in the precision formatter.

    I've just commited your suggestion.

    Andrew

    --- MagickaBBS v0.12alpha (Linux/armv7l)
    * Origin: Twilight BBS (21:1/125.99)