Skip to content

Commit

Permalink
Simplify formatting of last login dates in profile page.
Browse files Browse the repository at this point in the history
  • Loading branch information
EreMaijala committed Sep 4, 2024
1 parent 6b0db20 commit 9707296
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion themes/bootstrap3/templates/myresearch/profile.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
<?php foreach ($tokens as $i => $token): ?>
<tr>
<td data-label="<?=$this->transEsc('saved_login_platform_and_browser')?>" id="login_platform_<?=$i?>"><?=$this->transEsc($token->getPlatform())?> / <?=$this->transEsc($token->getBrowser())?></td>
<td data-label="<?=$this->transEsc('Last Login')?>" id="login_date_<?=$i?>"><?=$this->dateTime()->convertToDisplayDateAndTime('U', $token->getLastLogin()->getTimestamp())?></td>
<td data-label="<?=$this->transEsc('Last Login')?>" id="login_date_<?=$i?>"><?=$token->getLastLogin()->format($this->config()->dateTimeFormat())?></td>
<td data-label="<?=$this->transEsc('saved_login_actions')?>">
<form id="delete-login-token" method="post" action="<?=$this->url('myresearch-deletelogintoken')?>">
<input type="hidden" name="csrf" value="<?=$this->escapeHtmlAttr($this->auth()->getManager()->getCsrfHash())?>">
Expand Down
2 changes: 1 addition & 1 deletion themes/bootstrap5/templates/myresearch/profile.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
<?php foreach ($tokens as $i => $token): ?>
<tr>
<td data-label="<?=$this->transEsc('saved_login_platform_and_browser')?>" id="login_platform_<?=$i?>"><?=$this->transEsc($token->getPlatform())?> / <?=$this->transEsc($token->getBrowser())?></td>
<td data-label="<?=$this->transEsc('Last Login')?>" id="login_date_<?=$i?>"><?=$this->dateTime()->convertToDisplayDateAndTime('U', $token->getLastLogin()->getTimestamp())?></td>
<td data-label="<?=$this->transEsc('Last Login')?>" id="login_date_<?=$i?>"><?=$token->getLastLogin()->format($this->config()->dateTimeFormat())?></td>
<td data-label="<?=$this->transEsc('saved_login_actions')?>">
<form id="delete-login-token" method="post" action="<?=$this->url('myresearch-deletelogintoken')?>">
<input type="hidden" name="csrf" value="<?=$this->escapeHtmlAttr($this->auth()->getManager()->getCsrfHash())?>">
Expand Down

0 comments on commit 9707296

Please sign in to comment.