Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

Timezone Issue

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

Timezone Issue

Postby Tushar07 » Wed Apr 20, 2011 12:00 am

Hi,

I have set the Timezone in the PHP.ini file as follows:-

; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "Asia/Calcutta"

; http://php.net/date.default-latitude
;date.default_latitude = 31.7667


But when i PHP -info from the command prompt i get the following -

date

date/time support => enabled
"Olson" Timezone Database Version => 2010.15
Timezone Database => internal
Default timezone => Asia/Kolkata

Directive => Local Value => Master Value
date.default_latitude => 31.7667 => 31.7667
date.default_longitude => 35.2333 => 35.2333
date.sunrise_zenith => 90.583333 => 90.583333
date.sunset_zenith => 90.583333 => 90.583333
date.timezone => no value => no value

Can you please tell me even after setting the timezone to Asia/Calcutta why it shows it as No Value.

Thanks,
Tushar
Tushar07
New php-forum User
New php-forum User
 
Posts: 2
Joined: Tue Apr 19, 2011 11:49 pm

Re: Timezone Issue

Postby egami » Wed Apr 20, 2011 4:07 am

Did you remember to start / stop Apache/PHP after making the change?
User avatar
egami
php-forum GURU
php-forum GURU
 
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: Timezone Issue

Postby Tushar07 » Wed Apr 20, 2011 9:08 pm

Yes i did restart the IIS 7 Server after doing the PHP changes
Tushar07
New php-forum User
New php-forum User
 
Posts: 2
Joined: Tue Apr 19, 2011 11:49 pm

Re: Timezone Issue

Postby egami » Thu Apr 21, 2011 6:21 am

Sorry, I can't help you with Windows.
User avatar
egami
php-forum GURU
php-forum GURU
 
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT


Return to PHP Installation

Who is online

Users browsing this forum: No registered users and 0 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron