Skip to content

Commit ecefca5

Browse files
committed
Fixed Timezone Error #203
1 parent 794191e commit ecefca5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usr/local/sbin/eeupdate

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ EE122()
425425
mkdir -p /var/log/php5/ || OwnError "Unable To Create PHP5 Log Directory: /var/log/php5/"
426426
fi
427427

428-
TIME_ZONE=$(cat /etc/timezone | sed "s'/'\\\/'")
428+
TIME_ZONE=$(cat /etc/timezone | head -n1 | sed "s'/'\\\/'")
429429
sed -i "s/;date.timezone.*/date.timezone = $TIME_ZONE/" /etc/php5/fpm/php.ini
430430

431431
# Change PHP5-FPM Error Logs Location

0 commit comments

Comments
 (0)