• date

    From Dennis Slagers@2:280/2060 to All on Tue Nov 5 06:32:02 2024

    Hello everybody!

    Asking for a friend: can hpt do the logging and sent $date variable as yyyy rather than only yy ?


    Dennis


    --- GoldED+/LNX 1.1.5-b20240309
    * Origin: ---- BOFH: Problem solved, user deleted. (2:280/2060)
  • From Dennis Slagers@2:280/2060 to Dennis Slagers on Tue Nov 5 16:46:38 2024

    Hello Dennis!

    05 Nov 24 06:32, I wrote to all:


    Hello everybody!

    Asking for a friend: can hpt do the logging and sent $date variable as yyyy rather than only yy ?

    Answering myself ..
    I added

    use Time::Piece;

    . "Date: $mydate". Time::Piece->strptime($date, "%d %b %y %H:%M:%S")->strftime("%Y-%m-%d %H:%M:%S") . "\r"

    to change the date from yy to yyyy ..

    the $date is something wierd and the docs are not clear about it ;)

    Dennis


    --- GoldED+/LNX 1.1.5-b20240309
    * Origin: ---- BOFH: Problem solved, user deleted. (2:280/2060)
  • From Wilfred van Velzen@2:280/464 to Dennis Slagers on Tue Nov 5 17:03:46 2024
    Hi Dennis,

    On 2024-11-05 16:46:38, you wrote to you:

    use Time::Piece;

    . "Date: $mydate". Time::Piece->strptime($date, "%d %b %y %H:%M:%S")->strftime("%Y-%m-%d %H:%M:%S") . "\r"

    You can leave out the $mydate! It's not set.


    Bye, Wilfred.

    --- FMail-lnx64 2.3.2.4-B20240523
    * Origin: FMail development HQ (2:280/464)
  • From Dennis Slagers@2:280/2060 to Wilfred van Velzen on Tue Nov 5 18:23:38 2024

    Hello Wilfred!

    05 Nov 24 17:03, you wrote to me:

    Hi Dennis,

    On 2024-11-05 16:46:38, you wrote to you:

    use Time::Piece;

    . "Date: $mydate". Time::Piece->strptime($date, "%d %b %y
    %H:%M:%S")->strftime("%Y-%m-%d %H:%M:%S") . "\r"

    You can leave out the $mydate! It's not set.

    fixed that
    https://github.com/aroundmyroom/fidonet-pingpong


    Bye, Wilfred.

    --- FMail-lnx64 2.3.2.4-B20240523
    * Origin: FMail development HQ (2:280/464)

    Dennis


    --- GoldED+/LNX 1.1.5-b20240309
    * Origin: ---- BOFH: Problem solved, user deleted. (2:280/2060)