• TZUTC kludge

    From Alan Ianson@1:153/757 to All on Wed May 15 13:21:58 2019
    Hello All,

    I've noticed that my TZUTC kludge is off by 1 hour. It reads -0800, that is correct in PST but it is PDT now so it should read -0700.

    Reading in the docs about the TZ and TZUTC environment variables it is recommended to set both to get correct time in BBBS. Until now I have not set either and BBBS knows the correct TZUTC offset except in PDT.

    I am unsure how to set those variables and haven't come upon a working combo using trial and error.. :)

    Has anyone figured out the correct pair for your location and if so can you share? Maybe if I see a working pair of variables I can work out what I need here on the west coast in pacific daylight saving time.

    I have no TZ or TZUTC variables set now and if you look at my TZUTC it will read -0800 while it is actually -0700 now in daylight saving time.

    --- BBBS/Li6 v4.10 Toy-4
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)
  • From Alan Ianson@1:153/757 to All on Wed May 15 13:51:06 2019
    Hello All,

    I may have stumbled onto the answer.. and I haven't even had a drink yet today.

    I now have my TZ variable set to PDT+7 and TZUTC set to -0700 and I think my TZUTC kludge now says -0700 as it should.

    I'm not sure if that is the correct way to do it but I think my TZUTC kludge is
    correct now.. :)

    --- BBBS/Li6 v4.10 Toy-4
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)
  • From Andrew Leary@1:320/219 to Alan Ianson on Wed May 15 19:00:20 2019
    Hello Alan!

    15 May 19 13:44, you wrote to all:

    I may have stumbled onto the answer.. and I haven't even had a drink
    yet today.

    LOL...

    I now have my TZ variable set to PDT+7 and TZUTC set to -0700 and I
    think my TZUTC kludge now says -0700 as it should.

    It does.

    I'm not sure if that is the correct way to do it but I think my TZUTC kludge is correct now.. :)

    It is, until this fall, when you will need to change it back to -0800 when you fall back to standard time. There is extended syntax for the TZ environment variable that allows you to specify when the time springs forward and falls back. This (if supported by BBBS) would in theory allow you to set it and forget it, because the software would have all information needed to decide if you were currently on standard time or daylight savings time.

    Andrew

    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: Phoenix BBS * phoenix.bnbbbs.net (1:320/219)
  • From Mark Lewis@1:3634/12.73 to Alan Ianson on Wed May 15 20:32:56 2019

    On 2019 May 15 13:44:06, you wrote to All:

    @MSGID: 1:153/757.0 018f29d6
    @TZUTC: -0700
    @CHARSET: LATIN-1
    Hello All,

    I may have stumbled onto the answer.. and I haven't even had a drink yet today.

    I now have my TZ variable set to PDT+7 and TZUTC set to -0700 and I think my TZUTC kludge now says -0700 as it should.

    it does...

    I'm not sure if that is the correct way to do it but I think my TZUTC kludge is correct now.. :)

    on my old system, i had to change TZUTC when daylight saving switched on/off... that software wasn't smart enough to set it on its own... today's software should be able to do so, though...

    --- BBBS/Li6 v4.10 Toy-4
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)
    SEEN-BY: 57/0 103/705 153/250 154/10 20 30 40 700 203/0 220/70 221/0 6 226/100
    SEEN-BY: 227/201 400 229/426 240/5832 267/800 280/464 5003 292/854 317/2 SEEN-BY: 340/800 393/68 396/45 423/120 712/848 770/0 1 10 100 330 340
    772/0
    1
    SEEN-BY: 772/500 2452/250 3634/12 116/116 123/25 150 755 135/300 153/7715 SEEN-BY: 261/38 3634/15 27 50 119 123/50 3634/0 18/0 123/0 1/120
    @PATH: 153/757 250 770/1 280/464 154/10 3634/12



    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... IF original_works THEN don't_upgrade ENDIF
    ---
    * Origin: (1:3634/12.73)