• UserLastOn a little wonky?

    From seeLive@21:2/128 to All on Saturday, January 08, 2022 12:41:22
    I've noticed with a couple of different MPS's, like bulletin.mps, the date being returned from DateSTR(UserLastOn) = '14/24/28'... :-/

    I'm on a47 on a pi and I'm sure this wasn't a problem in a46... not sure if it's just me... Anyone else seeing this? Thanks

    _____________________________________________________________________

    (,``,"> rusty sez... Re-livin' the dream...

    --- Mystic BBS v1.12 A47 2021/12/24 (Raspberry Pi/32)
    * Origin: seeLive's rustyHedgehog - therhh.dynv6.net:2300 (21:2/128)
  • From TALIADON@21:3/138 to seeLive on Saturday, January 08, 2022 20:12:47
    I've noticed with a couple of different MPS's, like bulletin.mps, the
    date being returned from DateSTR(UserLastOn) = '14/24/28'... :-/

    I'm on a47 on a pi and I'm sure this wasn't a problem in a46... not sure if it's just me... Anyone else seeing this? Thanks

    I'm nowhere near as competent with MPL as your good self, but if you paste up
    a simple test script (or upload one to my system) I'd be happy to test it on
    my A46 system.

    o-----------o------------o-------------------------o
    TALIADON | 2:250/6 | 21:3/138 | [email protected] | o-----------o-----------o------------o-------------------------o
    | "Error is a great teacher, and humility its hardest lesson." | o--------------------------------------------------------------o

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: TALIADON BBS (21:3/138)
  • From seeLive@21:2/128 to TALIADON on Saturday, January 08, 2022 22:17:54
    On 08 Jan 2022, TALIADON said the following...

    I'm nowhere near as competent with MPL as your good self, but if you
    paste up a simple test script (or upload one to my system) I'd be happy
    to test it on my A46 system.

    I just uploaded a simple one-liner on your board... save it somewhere under the mystic dir where you can find it... you have generally two options to run it 1) compile with 'mplc' then add the 'datetest.mpx' to a menu and run or 2) you can run it from 'mide'. Let me know if you need help running it and let me know what it outputs... thanks, very much for helping!!

    _____________________________________________________________________

    (,``,"> rusty sez... Re-livin' the dream...

    --- Mystic BBS v1.12 A47 2021/12/24 (Raspberry Pi/32)
    * Origin: seeLive's rustyHedgehog - therhh.dynv6.net:2300 (21:2/128)
  • From TALIADON@21:3/138 to seeLive on Sunday, January 09, 2022 14:59:14
    I've noticed with a couple of different MPS's, like bulletin.mps, the
    date being returned from DateSTR(UserLastOn) = '14/24/28'... :-/

    Hi seeLive,

    I can confirm that A46 appears to give equally wonky results: I get 14/26/28.

    Interestingly, UserLastOn returned 1641738317 (09/01/2022, 14:25:17), so this does indeed appear to be an issue with 'DateSTR' rather than the timestamp returned by 'GetUser/GetThisUser'.

    Perhaps it's time to drop g00r00 a line?

    o-----------o------------o-------------------------o
    TALIADON | 2:250/6 | 21:3/138 | [email protected] | o-----------o-----------o------------o-------------------------o
    | "Error is a great teacher, and humility its hardest lesson." | o--------------------------------------------------------------o

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: TALIADON BBS (21:3/138)
  • From seeLive@21:2/128 to TALIADON on Sunday, January 09, 2022 12:28:05
    On 09 Jan 2022, TALIADON said the following...

    I can confirm that A46 appears to give equally wonky results: I get 14/26/28.

    Interestingly, UserLastOn returned 1641738317 (09/01/2022, 14:25:17), so this does indeed appear to be an issue with 'DateSTR' rather than the timestamp returned by 'GetUser/GetThisUser'.

    Perhaps it's time to drop g00r00 a line?

    Thanks very much, for confirming and digging further... Yeah, I'll try to find him and let him know... thanks, again!

    _____________________________________________________________________

    (,``,"> rusty sez... Re-livin' the dream...

    --- Mystic BBS v1.12 A47 2021/12/24 (Raspberry Pi/32)
    * Origin: seeLive's rustyHedgehog - therhh.dynv6.net:2300 (21:2/128)
  • From TALIADON@21:3/138 to seeLive on Sunday, January 09, 2022 17:50:31
    Thanks very much, for confirming and digging further... Yeah, I'll try
    to find him and let him know... thanks, again!

    FYI: the best way to contact g00r00 is to post a message via the 'MYSTIC' fidonet group.

    o-----------o------------o-------------------------o
    TALIADON | 2:250/6 | 21:3/138 | [email protected] | o-----------o-----------o------------o-------------------------o
    | "Error is a great teacher, and humility its hardest lesson." | o--------------------------------------------------------------o

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: TALIADON BBS (21:3/138)
  • From seeLive@21:2/128 to TALIADON on Sunday, January 09, 2022 13:32:48
    On 09 Jan 2022, TALIADON said the following...
    FYI: the best way to contact g00r00 is to post a message via the 'MYSTIC' fidonet group.

    Will do... thanks!

    _____________________________________________________________________

    (,``,"> rusty sez... Re-livin' the dream...

    --- Mystic BBS v1.12 A47 2021/12/24 (Raspberry Pi/32)
    * Origin: seeLive's rustyHedgehog - therhh.dynv6.net:2300 (21:2/128)
  • From opicron@21:3/126 to seeLive on Sunday, January 09, 2022 18:43:20
    Interestingly, UserLastOn returned 1641738317 (09/01/2022, 14:25:17), this does indeed appear to be an issue with 'DateSTR' rather than the timestamp returned by 'GetUser/GetThisUser'.

    How does DateSTR get the date from this timestamp? This timestamp is not a regular timestamp as far as I know.

    In Python I use the following to get dates from timestamps like lastscan date (filebase) and filedate (filebase).

    sec = ((timestamp>>0) & 0x1f)*2; # 0..60, only even values
    min = (timestamp>>5) & 0x3f; # 0..59
    hour = (timestamp>>11) & 0x1f; #0..23
    day = (timestamp>>16) & 0x1f; # 1..31
    month = (timestamp>>21) & 0xf; # 1..12
    year = ((timestamp>>25) & 0x7f) + 1980;

    oP!

    --- Mystic BBS v1.12 A46 2020/08/26 (Linux/64)
    * Origin: TheForze - bbs.opicron.eu:23 (21:3/126)
  • From seeLive@21:2/128 to opicron on Sunday, January 09, 2022 14:26:31
    On 09 Jan 2022, opicron said the following...
    How does DateSTR get the date from this timestamp? This timestamp is not
    a regular timestamp as far as I know.

    It's just... DateSTR(UserLastOn,1) where 1 is the format of 'mm/dd/yy'... UserLastOn looks to me like unix time, but haven't validated that yet.

    Whatcha thinkin'?

    _____________________________________________________________________

    (,``,"> rusty sez... Re-livin' the dream...

    --- Mystic BBS v1.12 A47 2021/12/24 (Raspberry Pi/32)
    * Origin: seeLive's rustyHedgehog - therhh.dynv6.net:2300 (21:2/128)