Auto reload the current page when the database has changed and when idling (closes #59)

This commit is contained in:
Bernd Bestel
2018-09-24 13:53:18 +02:00
parent 8540fc44f3
commit 2a0ec30bb0
6 changed files with 114 additions and 0 deletions

View File

@@ -63,4 +63,9 @@ class DatabaseService
return false;
}
public function GetDbChangedTime()
{
return date('Y-m-d H:i:s', filemtime(GROCY_DATAPATH . '/grocy.db'));
}
}