• UserLastOn - MPL var.

    From xqtr@21:1/111 to All on Monday, April 15, 2019 17:00:21
    Could someone test this MPL scripts and respond what value he gets?

    uses user

    begin
    getthisuser;
    writeln('user last: '+int2str(UserLastOn)+' '+datestr(userlaston,3)+' '+timestr(userlaston,false));
    end.

    In two machines i get a date that's in the future! :) so except of being a
    time traveller, something is wrong here and i can't figure if its in my
    machine or in MPL.

    :: XQTR :: Another Droid BBS :: andr01d.zapto.org:9999 :: xqtr@gmx.com

    --- Mystic BBS v1.12 A43 2019/03/03 (Raspberry Pi/32)
    * Origin: Another Droid BBS # andr01d.zapto.org:9999 (21:1/111)
  • From dream master@21:1/163 to xqtr on Monday, April 15, 2019 11:51:45
    On 15 Apr 2019, xqtr said the following...
    begin
    getthisuser;
    writeln('user last: '+int2str(UserLastOn)+' '+datestr(userlaston,3)+' '+timestr(userlaston,false));
    end.
    In two machines i get a date that's in the future! :) so except of being
    a time traveller, something is wrong here and i can't figure if its in my machine or in MPL.

    the last on date in the users.dat has changed to packed unix time so i did the new function he added to convert here:

    datestr((dateu2d(userlaston)),1);

    this was introduced in A38
    + New MPL function DateU2D (unixdate): Converts <unixdate> to a DOS date

    |08 .|05ú|13ù|15Dr|07e|08am Ma|07st|15er|13ù|05ú|08.
    |08 øù|05ú|13ùø |13øù|05ú|08ùø
    |11 DoRE|03!|11ACiDiC|03!|11Demonic
    |08[|15bbs|09.|15dreamlandbbs|09.|15org|08]

    --- Mystic BBS v1.12 A43 2019/03/03 (Windows/32)
    * Origin: |08--[|15!|07dreamland BBS bbs.dreamlandbbs.org (21:1/163)
  • From xqtr@21:1/111 to dream master on Monday, April 15, 2019 21:21:57
    the last on date in the users.dat has changed to packed unix time so i
    did the new function he added to convert here: datestr((dateu2d(userlaston)),1);
    this was introduced in A38
    + New MPL function DateU2D (unixdate): Converts <unixdate> to a DOS date

    Thank you! i didn't read about this change. Now you mentioned it, i found it also in the bulletin.mps script included in the a43 as an example.

    So i guess all variables containing dates, are in unix format or just the ones that are included in the users.dat file?

    :: XQTR :: Another Droid BBS :: andr01d.zapto.org:9999 :: xqtr@gmx.com

    --- Mystic BBS v1.12 A43 2019/03/03 (Raspberry Pi/32)
    * Origin: Another Droid BBS # andr01d.zapto.org:9999 (21:1/111)
  • From dream master@21:1/163 to xqtr on Monday, April 15, 2019 14:18:05
    On 15 Apr 2019, xqtr said the following...
    So i guess all variables containing dates, are in unix format or just
    the ones that are included in the users.dat file?

    so far in users.dat laston.dat is still the same.

    |08 .|05ú|13ù|15Dr|07e|08am Ma|07st|15er|13ù|05ú|08.
    |08 øù|05ú|13ùø |13øù|05ú|08ùø
    |11 DoRE|03!|11ACiDiC|03!|11Demonic
    |08[|15bbs|09.|15dreamlandbbs|09.|15org|08]

    --- Mystic BBS v1.12 A43 2019/03/03 (Windows/32)
    * Origin: |08--[|15!|07dreamland BBS bbs.dreamlandbbs.org (21:1/163)