mirror of
https://github.com/friendica/friendica
synced 2025-04-25 05:10:11 +00:00
Add Temporal::utc() shorthand to Temporal::convert()
This commit is contained in:
parent
ca8209a2ce
commit
35d06bd9eb
22 changed files with 173 additions and 128 deletions
|
@ -222,7 +222,7 @@ class Login extends BaseModule
|
|||
if (!x($_SESSION['last_login_date'])) {
|
||||
$_SESSION['last_login_date'] = Temporal::utcNow();
|
||||
}
|
||||
if (strcmp(Temporal::convert('now - 12 hours'), $_SESSION['last_login_date']) > 0) {
|
||||
if (strcmp(Temporal::utc('now - 12 hours'), $_SESSION['last_login_date']) > 0) {
|
||||
$_SESSION['last_login_date'] = Temporal::utcNow();
|
||||
$login_refresh = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue