Fix expiration date at view user

This commit is contained in:
Ibnu Maksum 2023-08-24 15:12:31 +07:00
parent d51edefc10
commit cad57760bd
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
2 changed files with 6 additions and 1 deletions

View File

@ -42,6 +42,11 @@ class Lang
return date($config['date_format']. ' H:i', strtotime($date));
}
public static function dateAndTimeFormat($date, $time){
global $config;
return date($config['date_format']. ' H:i', strtotime("$date $time"));
}
public static function nl2br($text){
return nl2br($text);
}

View File

@ -77,7 +77,7 @@
</li>
<li class="list-group-item">
{$_L['Expires_On']} <span
class="pull-right">{Lang::dateTimeFormat($package['expiration']+' '+$package['time'])}</span>
class="pull-right">{Lang::dateAndTimeFormat($package['expiration'], $package['time'])}</span>
</li>
<li class="list-group-item">
{$package['routers']} <span class="pull-right">{$package['method']}</span>