Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Web Development (http://www.go4expert.com/forums/web-development-forum/)
-   -   how to set timezone default to america/los_angeles (http://www.go4expert.com/forums/set-timezone-default-america-losangeles-t20308/)

Freepls 8Dec2009 13:17

how to set timezone default to america/los_angeles
 
i know u can change it with php for a page by page basis, but i also know u can change it in the ini file(set the default timezone)
but well i dont know how to do the ini file and im not sure if its allowed on freehosting but well..
can someone let me know if its allowed? or
how to make it so that whoever is viewing my site (the time is in their timezone for them)
sees the right time it is there.
I use Free hosting at myplus.org

venami 8Dec2009 13:41

Re: how to set timezone default to america/los_angeles
 
You can set the default timezone in INI file using the "date.timezone" setting.

For example, if you are in India, use:
Code:

date.timezone = "Asia/Calcutta"
But, you have to ask the admin of myplus.org to know whether doing this allowed or not.

Welcome to the forum :)

venami 8Dec2009 13:48

Re: how to set timezone default to america/los_angeles
 
To set the timezone for los_angeles, use:
Code:

date.timezone = "America/Los Angeles"

neo_vi 9Dec2009 10:40

Re: how to set timezone default to america/los_angeles
 
Quote:

Originally Posted by venami (Post 61369)
You can set the default timezone in INI file using the "date.timezone" setting.

For example, if you are in India, use:
Code:

date.timezone = "Asia/Calcutta"
But, you have to ask the admin of myplus.org to know whether doing this allowed or not.

Welcome to the forum :)

I hope this wont work.
Use this
Code:

date.timezone = "Asia/Kolkata"
http://www.go4expert.com/images/icons/icon12.gif

venami 9Dec2009 16:04

Re: how to set timezone default to america/los_angeles
 
Yes, you are right neo_vi ;)

Freepls 10Dec2009 11:03

Re: how to set timezone default to america/los_angeles
 
thanks all for support !


All times are GMT +5.5. The time now is 05:15.