Skip to content

Commit 396ad6a

Browse files
committed
Merge branch 'issue-133' into 'master'
fix: wrong timezone in android calendar See merge request grommunio/grommunio-sync!97
2 parents 9aa611d + e2b984e commit 396ad6a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lib/utils/timezoneutil.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,7 @@ private static function encodeTZName($name) {
12751275
*/
12761276
public static function GetSyncBlobFromTZ($tz) {
12771277
// set the correct TZ name (done using the Bias)
1278-
if (!isset($tz["tzname"]) || !$tz["tzname"] || !isset($tz["tznamedst"]) || !$tz["tznamedst"]) {
1278+
if (!isset($tz["tzname"]) || !isset($tz["tznamedst"])) {
12791279
$tz = TimezoneUtil::FillTZNames($tz);
12801280
}
12811281

@@ -1452,11 +1452,10 @@ public static function CreateTimezoneDefinitionObject($tzdef) {
14521452
* @return array
14531453
*/
14541454
public static function GetTzFromTimezoneDef($tzdef) {
1455-
$tz = [];
1456-
// convert timezone name because in zcore the chars are nul-padded
1457-
if (!empty($tzdef['keyname'])) {
1458-
$tz['tzname'] = $tz['tznamedst'] = self::getMSTZnameFromTZName(iconv('UTF-16', 'UTF-8', $tzdef['keyname']));
1459-
}
1455+
$tz = [
1456+
'tzname' => '',
1457+
'tznamedst' => '',
1458+
];
14601459

14611460
foreach ($tzdef['rules'] as $rule) {
14621461
if ($rule['tzruleflags'] & TZRULE_FLAG_EFFECTIVE_TZREG) {

0 commit comments

Comments
 (0)