aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Setup.php
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2024-03-13 01:21:40 -0100
committerMaxence Lange <maxence@artificial-owl.com>2024-03-13 02:22:11 -0100
commit519e4345739876d2ae7e064e347d19524905b090 (patch)
tree0b997f8d18f54efcb97e9278503ae42e119fd9b6 /lib/private/Setup.php
parent5723c13dc0c7f4025c4d976c1f792f9bb3513fe2 (diff)
downloadnextcloud-server-519e4345739876d2ae7e064e347d19524905b090.tar.gz
nextcloud-server-519e4345739876d2ae7e064e347d19524905b090.zip
fix(updatenotification): spread the use of new appconfig
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/private/Setup.php')
-rw-r--r--lib/private/Setup.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Setup.php b/lib/private/Setup.php
index 1e42fbfbeb5..0b7780c5cd0 100644
--- a/lib/private/Setup.php
+++ b/lib/private/Setup.php
@@ -62,6 +62,7 @@ use OC\TextProcessing\RemoveOldTasksBackgroundJob;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\BackgroundJob\IJobList;
use OCP\Defaults;
+use OCP\IAppConfig;
use OCP\IConfig;
use OCP\IGroup;
use OCP\IGroupManager;
@@ -382,7 +383,8 @@ class Setup {
$config = Server::get(IConfig::class);
$config->setAppValue('core', 'installedat', (string)microtime(true));
- $config->setAppValue('core', 'lastupdatedat', (string)microtime(true));
+ $appConfig = Server::get(IAppConfig::class);
+ $appConfig->setValueInt('core', 'lastupdatedat', time());
$vendorData = $this->getVendorData();
$config->setAppValue('core', 'vendor', $vendorData['vendor']);