Ahmad Badpey
Ahmad Badpey

Reputation: 6612

date.timezone switch not found in php.ini file

i have a problem with php.ini file.
i need to change current date and time in wamp server in local.
i know that for this should change date.timezone switch in php.ini file. i want change it like this that is my time zone location

date.timezone = "Asia/Tehran"

but i do not find this switch in php.ini for change when open in notepad.
i am using wamp 1.7.3.
please help me for find and change it.

Upvotes: 0

Views: 3168

Answers (2)

Mob
Mob

Reputation: 11096

WAMP 1.7.3 comes with PHP 5.2. which is supposed to have the date.timezone config.

Maybe you can manually add it.

Something like

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

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

Upvotes: 2

Aman
Aman

Reputation: 548

it should be in the php.ini file looking like this :

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

Alternatively, try updating WAMP to the latest version. The above settings are from my php.ini from WAMP version 2.

Upvotes: 1

Related Questions