mirror of
https://github.com/ovh/the-bastion.git
synced 2025-10-09 04:46:12 +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 {
|
else {
|
||||||
$ret{'creation_information'} = $creation_info;
|
$ret{'creation_information'} = $creation_info;
|
||||||
if ($creation_info->{'time_utc'}) {
|
if ($creation_info->{'datetime_utc'}) {
|
||||||
my $createdOnStr = $creation_info->{'time_utc'};
|
my $createdOnStr = $creation_info->{'datetime_utc'};
|
||||||
if ($creation_info->{'time_local'} && $creation_info->{'time_utc'} ne $creation_info->{'time_local'}) {
|
if ($creation_info->{'datetime_local'} && $creation_info->{'datetime_utc'} ne $creation_info->{'datetime_local'}) {
|
||||||
$createdOnStr .= " / " . $creation_info->{'time_local'};
|
$createdOnStr .= " / " . $creation_info->{'datetime_local'};
|
||||||
}
|
}
|
||||||
$createdOnStr = sprintf(
|
$createdOnStr = sprintf(
|
||||||
"Created on %s (%s ago)",
|
"Created on %s (%s ago)",
|
||||||
|
|
Loading…
Add table
Reference in a new issue