Mercurial > hg > rc2
comparison program/lib/Roundcube/rcube_config.php @ 22:303b85d5b561
More cleaning up php8 Warnings/deprecations
| author | Charlie Root |
|---|---|
| date | Wed, 15 Oct 2025 14:06:27 -0400 |
| parents | b6a96bdd6b29 |
| children |
comparison
equal
deleted
inserted
replaced
| 21:73124dd49283 | 22:303b85d5b561 |
|---|---|
| 608 * Internal getter for client's (browser) timezone identifier | 608 * Internal getter for client's (browser) timezone identifier |
| 609 */ | 609 */ |
| 610 private function client_timezone() | 610 private function client_timezone() |
| 611 { | 611 { |
| 612 // @TODO: remove this legacy timezone handling in the future | 612 // @TODO: remove this legacy timezone handling in the future |
| 613 $props = $this->fix_legacy_props(array('timezone' => $_SESSION['timezone'])); | 613 $props = $this->fix_legacy_props(array('timezone' => $_SESSION['timezone']??null)); |
| 614 | 614 |
| 615 if (!empty($props['timezone'])) { | 615 if (!empty($props['timezone'])) { |
| 616 try { | 616 try { |
| 617 $tz = new DateTimeZone($props['timezone']); | 617 $tz = new DateTimeZone($props['timezone']); |
| 618 return $tz->getName(); | 618 return $tz->getName(); |
