mirror of
https://github.com/grocy/grocy.git
synced 2025-10-12 08:34:48 +00:00
Fixed that /api/system/db-changed-time
always returned the current time
This commit is contained in:
@@ -68,4 +68,9 @@ class DatabaseService
|
||||
{
|
||||
return date('Y-m-d H:i:s', filemtime(GROCY_DATAPATH . '/grocy.db'));
|
||||
}
|
||||
|
||||
public function SetDbChangedTime($dateTime)
|
||||
{
|
||||
touch(GROCY_DATAPATH . '/grocy.db', strtotime($dateTime));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user