|
| Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Registered
Join Date: Dec 2009
Location: Barcelona
Posts: 3
Reputation: 0
|
Problem setting the Timezone of the server
Before you say it, I have checked in the forum for this issue, but I haven't seen any solution.
I am from Barcelona, Spain, and I want to set the timezone of the server in my local time. I have done that the fixed post says in this forum about to put: SetEnv TZ Europe/Madrid in .htaccess but it doesn't work for me. So, please, anyone can help me to put the server time in my local time? Thank you! |
|
|
|
|
#2 |
|
Former Spam Filter (EU)
Join Date: Mar 2004
Location: Washington (THE original UK one!)
Posts: 12,806
Reputation: 470
|
As you're on a shared system, it's unlikely that you can set the server time, or I'm misunderstanding you.
The way I'd suggest is to take the time from the server and add the offset required. Server time is Boston, USA time.
__________________
This is a Powweb customer
helping Powweb customer forum. I am a customer just like you!! Some matters can only be answered by staff or support. Give it a go - ask here first! ![]() |
|
|
|
|
#3 | |
|
Registered
Join Date: Dec 2009
Location: Barcelona
Posts: 3
Reputation: 0
|
Quote:
I know that I am on a shared system, so, when it's said to change the server time, I want to say change "the server time for my site". It's the same that you suggested me but, done automatically for my site. I know that this can be fixed. The offset solution could be a solution but we don't have the same offset time during all the whole year, and this will make me to be changing it always. |
|
|
|
|
|
#4 | ||
|
Former Spam Filter (EU)
Join Date: Mar 2004
Location: Washington (THE original UK one!)
Posts: 12,806
Reputation: 470
|
You could always attempt the programming of the change to be automatic.
Quote:
Quote:
__________________
This is a Powweb customer
helping Powweb customer forum. I am a customer just like you!! Some matters can only be answered by staff or support. Give it a go - ask here first! ![]() |
||
|
|
|
|
#5 |
|
Registered
Join Date: Dec 2009
Location: Barcelona
Posts: 3
Reputation: 0
|
Ok, I have the solution.
Before all, thanks to IanS for your help! Your solution should work but I think that do that in every script it's not the best way. I open a support ticket, what I have found that when we use date.timezone = "Europe/Madrid" in the ini.php the php ignores it. It's a bug I think following the link: http://bugs.php.net/bug.php?id=45191 So what support has done is to add: PHP Code:
PHP Code:
|
|
|
![]() |
| Thread Tools | |
|
|