Timezone fix

This commit is contained in:
Jaroslav Drzik
2020-04-02 14:04:09 +02:00
parent fd71ae1134
commit 0116bbfaf4
3 changed files with 12 additions and 10 deletions

View File

@@ -127,6 +127,7 @@ class Search extends Controller
public function lastactive()
{
date_default_timezone_set("Europe/Bratislava");
$time = strtotime("-15 minutes", time());
$date = date("Y-m-d G:i:s", $time);