2011-10-29 40 views
0

我有一個php.ini文件的問題。
我需要在當地的wamp服務器中更改當前的日期和時間。
我知道這應該改變date.timezone切換php.ini文件。 我想改變它像這樣的是我的時區位置date.timezone開關沒有在php.ini文件中找到

date.timezone = "Asia/Tehran" 

,但我不覺得在php.ini時在記事本中打開此開關的變化。我正在使用wamp 1.7.3
請幫我找到並改變它。

回答

1

應該在php.ini文件看起來像這樣:

[Date] 
; Defines the default timezone used by the date functions 
; http://php.net/date.timezone 
date.timezone = UTC 

或者,嘗試更新WAMP到最新版本。以上設置來自WAMP版本2的我的php.ini。

+0

是我強迫安裝WAMP的新版本 –

2

WAMP 1.7.3帶有PHP 5.2。這應該有date.timezone配置。

也許你可以手動添加它。

喜歡的東西

;;;;;;;;;;;;;;;;;;; ; Module Settings ; ;;;;;;;;;;;;;;;;;;; 

[Date] 
; Defines the default timezone used by the date functions ; 
http://php.net/date.timezone 
date.timezone = Europe/London