]> granicus.if.org Git - php/commitdiff
- use date.timezone ini setting
authorPierre Joye <pajoye@php.net>
Thu, 21 Aug 2008 18:36:44 +0000 (18:36 +0000)
committerPierre Joye <pajoye@php.net>
Thu, 21 Aug 2008 18:36:44 +0000 (18:36 +0000)
ext/standard/tests/general_functions/sunfuncts.phpt

index 4d95c59ecd56383701f6a504227baa971f858488..37a86368981270cf790dd5f528196bbe9e969341 100644 (file)
@@ -2,11 +2,10 @@
 date_sunrise() and date_sunset() functions
 --INI--
 precision=13
+date.timezone=Asia/Jerusalem
 --FILE--
 <?php
 
-putenv ("TZ=Asia/Jerusalem");
-
 for($a=1;$a<=12;$a++){
        echo date_sunrise(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_TIMESTAMP,31.76670,35.23330,90.83,2)." ";
        echo date_sunrise(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_STRING,31.76670,35.23330,90.83,2)." ";