mirror of
https://github.com/ovh/the-bastion.git
synced 2025-10-01 17:25:32 +08:00
fix: accountInfo: missing creation date on non-json output
This commit is contained in:
parent
e5cfa26853
commit
6baa61a7f4
1 changed files with 4 additions and 4 deletions
|
@ -170,10 +170,10 @@ if (OVH::Bastion::is_auditor(account => $self)) {
|
|||
}
|
||||
else {
|
||||
$ret{'creation_information'} = $creation_info;
|
||||
if ($creation_info->{'time_utc'}) {
|
||||
my $createdOnStr = $creation_info->{'time_utc'};
|
||||
if ($creation_info->{'time_local'} && $creation_info->{'time_utc'} ne $creation_info->{'time_local'}) {
|
||||
$createdOnStr .= " / " . $creation_info->{'time_local'};
|
||||
if ($creation_info->{'datetime_utc'}) {
|
||||
my $createdOnStr = $creation_info->{'datetime_utc'};
|
||||
if ($creation_info->{'datetime_local'} && $creation_info->{'datetime_utc'} ne $creation_info->{'datetime_local'}) {
|
||||
$createdOnStr .= " / " . $creation_info->{'datetime_local'};
|
||||
}
|
||||
$createdOnStr = sprintf(
|
||||
"Created on %s (%s ago)",
|
||||
|
|
Loading…
Add table
Reference in a new issue