aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJore <contact@jore.cc>2024-04-10 07:36:01 +1000
committerskjnldsv <skjnldsv@protonmail.com>2024-08-07 09:33:09 +0200
commit96638fd6b2544043b48f9c64eb11033086cf1685 (patch)
tree2c9c5cc04863044db09c91f80f3e4cfdd74042c8 /core
parenta0566f881d57b5dd70bc7459f60f8f293818e289 (diff)
downloadnextcloud-server-96638fd6b2544043b48f9c64eb11033086cf1685.tar.gz
nextcloud-server-96638fd6b2544043b48f9c64eb11033086cf1685.zip
occ: Remove timezone changes.
Signed-off-by: Jore <contact@jore.cc>
Diffstat (limited to 'core')
-rw-r--r--core/Command/User/Info.php3
-rw-r--r--core/Command/User/LastSeen.php4
2 files changed, 0 insertions, 7 deletions
diff --git a/core/Command/User/Info.php b/core/Command/User/Info.php
index 0d54ca412c6..f8b76a40a1f 100644
--- a/core/Command/User/Info.php
+++ b/core/Command/User/Info.php
@@ -49,9 +49,6 @@ class Info extends Base {
$groups = $this->groupManager->getUserGroupIds($user);
- if (ini_get('date.timezone')) {
- date_default_timezone_set(ini_get('date.timezone'));
- }
if ($user->getLastLogin() == 0) {
$lastseen = "never";
} else {
diff --git a/core/Command/User/LastSeen.php b/core/Command/User/LastSeen.php
index 2a94bb89baf..61a6c97ce72 100644
--- a/core/Command/User/LastSeen.php
+++ b/core/Command/User/LastSeen.php
@@ -44,10 +44,6 @@ class LastSeen extends Base {
protected function execute(InputInterface $input, OutputInterface $output): int {
$singleUserId = $input->getArgument('uid');
- if (ini_get('date.timezone')) {
- date_default_timezone_set(ini_get('date.timezone'));
- }
-
if ($singleUserId) {
$user = $this->userManager->get($singleUserId);
if (is_null($user)) {