]> git.pld-linux.org Git - packages/php.git/commitdiff
Revert "use "System/Localtime" tzname (which uses /etc/localtime) if configuration...
authorElan Ruusamäe <glen@delfi.ee>
Thu, 16 Aug 2012 17:54:36 +0000 (20:54 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 16 Aug 2012 17:54:36 +0000 (20:54 +0300)
This reverts commit 880718391a5fde8097dae122100efab36cb3023e.

php.spec

index c89140fa0c82560764254bf3012f950032dd1479..9621f48b14ebac41abce72cce1eafb8059c23298 100644 (file)
--- a/php.spec
+++ b/php.spec
@@ -2577,19 +2577,6 @@ fi
 %post  common -p /sbin/ldconfig
 %postun        common -p /sbin/ldconfig
 
-%post common
-# PHP 5.3 requires timezone being setup, try setup it from tzdata
-if ! grep -q '^date.timezone[[:space:]]*=' %{_sysconfdir}/php.ini; then
-       if [ -f /etc/sysconfig/timezone ]; then
-               TIMEZONE=
-               . /etc/sysconfig/timezone
-       else
-               TIMEZONE=System/Localtime
-       fi
-
-       %{__sed} -i -e "s,^;date.timezone[[:space:]]*=.*,date.timezone = $TIMEZONE," %{_sysconfdir}/php.ini
-fi
-
 %posttrans common
 # minimizing apache restarts logics. we restart webserver:
 #
This page took 0.078986 seconds and 4 git commands to generate.