mirror of
https://github.com/nextcloud/server.git
synced 2025-03-14 16:33:21 +00:00
improved fallback of timezone detection
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
c1389070fa
commit
50463e2d13
1 changed files with 4 additions and 1 deletions
|
@ -41,7 +41,10 @@ class TimeZoneProvider {
|
|||
escapeshellarg($this->host)
|
||||
);
|
||||
$this->timeZone = exec($command);
|
||||
} else { // fallback to server timezone
|
||||
}
|
||||
|
||||
if ($this->timeZone) {
|
||||
// fallback to server timezone
|
||||
$this->timeZone = date_default_timezone_get();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue