[SOLVED] How do I c...
 
Notifications
Clear all

[SOLVED] How do I correct the time zone?

17 Posts
4 Users
0 Reactions
3,491 Views
(@glenien)
Posts: 47
Eminent Member
Topic starter
 

I know it has been opened before in Version 2-1 support topics, but I wonder if there is any improvement for V3? Can I change the time zone for my news?


 
Posted : 17/07/2007 9:33 am
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

I think you have to do that on your server. There's no place in eFic to set your time.


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 17/07/2007 9:24 pm
(@glenien)
Posts: 47
Eminent Member
Topic starter
 

Hmmm I asked my host about it, which is Dreamhost by the way, and they responded me like this:

Unfortunately, the timezone can't be changed on our shared MySQL
servers. That's something that your software should allow you to specify.
If not, you should contact the developers to see if they could make that
option available. Sorry about that. Let us know if you need anything
else.

Er?


 
Posted : 17/07/2007 10:54 pm
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

Guess you can't then. There might be a thread somewhere on the forums of someone who tried it, but I don't know where. Try a search for "time" and "change" maybe.


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 17/07/2007 11:49 pm
(@jacynthe)
Posts: 242
Estimable Member
 

There is a very simple way to do this.

Create a .htaccess file in your web root (public_html on your site) and insert that line of text:


SetEnv TZ America/Montreal

Or wherever you are. You can find a list of those timezones online I am pretty sure (edit: you can browse there: http://www.php.net/manual/en/timezones.php for a comprehensive list). Save that .htaccess file and bingo... it will use the time zone you specified instead of the server time.


Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 23/08/2007 3:15 am
(@glenien)
Posts: 47
Eminent Member
Topic starter
 

I really really wished it worked, because it sounded so genius and simple, argh! I did exactly like you said, I created a .htaccess file with "SetEnv TZ Europe/Istanbul" this line, (my timezone btw πŸ™‚ ) and uploaded it to my server, and tried to post a new news, but timezone is still incorrect.

Maybe I'm putting the .htaccess file into the wrong folder?

My main site is this:
www.turkfanfiction.net

And efiction is there: www.turkfanfiction.net/arsiv

I tried putting the file into:

1) /turkfanfiction.net (where index.html is)
2) /turkfanfiction.net/arsiv (where index.php is)
3) /turkfanfiction.net/arsiv/blocks/news (i was desperate really)

but it didn't worked. Any suggestions?


 
Posted : 23/08/2007 8:11 am
(@jacynthe)
Posts: 242
Estimable Member
 

I just checked and it did work for me (my server is somewhere in Australia or something... 14 hours ahead of me and I'm in Quebec). So I checked my .htaccess file and here are things you could check I suppose:

1) put the file in /turkfanfiction.net (/home/****/public_html)
2) make sure the name of the file is simply .htaccess and not something like .htaccess.txt or anything else
3) the file should be chmodded 644 by default and should work left that way
4) make sure you didn't leave any empty line of text before adding those lines at the beginning of your .htaccess file - if you have nothing else in that file, also don't leave any empty line AFTER. Probably has nothing to do with why it's not working but let's err on the safe side here.
5) if you wrote the line of code with the quote marks "SetENV...", remove those. It may very well be the reason this is not working.


Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 23/08/2007 10:07 am
(@glenien)
Posts: 47
Eminent Member
Topic starter
 

1) It's definetly there.
2) And it is, .htaccess
3) Chmodded 644 totally.
4) No empty lines, nothing, only that line.
5) And without quote marks

But still, I post a new news, and timezone is not correct. πŸ™


 
Posted : 23/08/2007 10:22 am
(@fanfictionworld)
Posts: 149
Estimable Member
 

I have just done it for my site and it works perfectly thanks Jacynthe  πŸ˜€


~Spikey~

my site url: http://www.fanfictionworld.org
efic version:3.5.3

 
Posted : 23/08/2007 1:19 pm
(@jacynthe)
Posts: 242
Estimable Member
 

I have just done it for my site and it works perfectly thanks Jacynthe  πŸ˜€

My pleasure. πŸ™‚

And glenien, I'll try to google this matter tonight to see if others mentioned having this issue and got it fixed.


Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 23/08/2007 2:38 pm
(@jacynthe)
Posts: 242
Estimable Member
 

Alright.

glenien, check to see which version of PHP your server is using. If it's PHP 5.1 or 5.2 try to put this in your .htacess file instead


date.timezone = Europe/Istanbul

That's all I could find that could maybe influence why this is happening to you. Hope this fixes it.


Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 23/08/2007 3:09 pm
(@glenien)
Posts: 47
Eminent Member
Topic starter
 

I checked and my server says it is: PHP 4.4.7. But I can change it to PHP 5.2.2.

I tried to put anyway the new line, but the site blocked completely, so i deleted it. I can, I guess still try to change my PHP to 5.2.2. and try the new line, although I am not sure what will happen if I do that  πŸ˜•


 
Posted : 23/08/2007 4:45 pm
(@jacynthe)
Posts: 242
Estimable Member
 

Is your site hosted by Dreamhost by any chance? Because some people who have their site on dreamhost seem to be having this issue too.

There is a way to do this, but it involves modifying the script to include the server variable or something of the sort. If you only want that date/time changed in the news thingie... maybe you could do this.

Open news.php and add that line of text


putenv('TZ=Europe/Istanbul');

There doesn't seem to be a particular place where you need to put it so maybe put that under


$current = "news";

Also add it to /admin/news.php just to make sure. I really wouldn't do that myself just in case it screws something out but maybe it would work too so. It's a gamble I guess.


Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 23/08/2007 4:55 pm
(@glenien)
Posts: 47
Eminent Member
Topic starter
 

Oh, yes definetly my host is Dreamhost. *bangs head*

Hmmm I asked my host about it, which is Dreamhost by the way, and they responded me like this:

Unfortunately, the timezone can't be changed on our shared MySQL
servers. That's something that your software should allow you to specify.
If not, you should contact the developers to see if they could make that
option available. Sorry about that. Let us know if you need anything
else.

Er?

Er well, if it isn't something too complicated I'm all ears. Or you know, if I don't lose every bits of my poor wrong-time-zoned site πŸ™‚


 
Posted : 23/08/2007 5:01 pm
(@glenien)
Posts: 47
Eminent Member
Topic starter
 

Is your site hosted by Dreamhost by any chance? Because some people who have their site on dreamhost seem to be having this issue too.

There is a way to do this, but it involves modifying the script to include the server variable or something of the sort. If you only want that date/time changed in the news thingie... maybe you could do this.

Open news.php and add that line of text


putenv('TZ=Europe/Istanbul');

There doesn't seem to be a particular place where you need to put it so maybe put that under


$current = "news";

Also add it to /admin/news.php just to make sure. I really wouldn't do that myself just in case it screws something out but maybe it would work too so. It's a gamble I guess.

OMG IT WORKED!!! LOL I so love you right now. Thank you Jacynthe, thank you so much!


 
Posted : 23/08/2007 5:10 pm
Page 1 / 2
Share: