client_lastconnected for offline user

    • Offizieller Beitrag

    Hi,
    with the ts3admin.class you are able to display this value by using the method clientDbInfo.


    Note, you will receive a Linux timestamp, which you need to convert to a date format like "24/08/2015 20:15". To format it, you can use the PHP function date.


    For example like this:

    PHP
    <?php
    $lastConnectTimestamp = $ts3admin->clientDbInfo(1337);
    $lastConnectDateFormat = date("d/m/Y H:i", $lastConnectTimestamp);
    echo $lastConnectDateFormat;
    ?>


    Please note, that this code is just some pseudo-code.

    Viele Grüße,
    Sebbo

    ---

    DevOps Engineer <3