Skip to content

Commit da860c8

Browse files
author
Marius Cramer
committed
Fixed timezone recognition
1 parent 332ae54 commit da860c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

install/lib/install.lib.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,8 @@ function get_system_timezone() {
811811
exec('date +%Z', $tzinfo);
812812
$timezone = $tzinfo[0];
813813
}
814+
815+
if(substr($timezone, 0, 1) === '/') $timezone = substr($timezone, 1);
814816

815817
return $timezone;
816818
}

0 commit comments

Comments
 (0)