The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Mar 21, 2012 9:47 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Fri Jul 18, 2008 9:25 am
Posts: 270
Location: London
Hi all

I run a 1.5.25 site hosted on an linux using php 5.2.17. We need to move to a different server. I have copied the whole jolly thing over, altered the config and heypresto the site works except that I keep seeing

Code:
Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings....


The new server is running php 5.3.8

Now I don't know if this is relevant, but I read on some posts that 1.5 doesn't run with php 5.3 but then I also read that it does???

Has anyone got any ideas what might be wrong

The offending beast is at http://www.c9566644.myzen.co.uk/ and I;d really appreciate any help!

Thanks

PS I tried adding Code:

Code:
php_value date.timezone Europe/London
into my .htaccess file and just got server error

_________________
Blog and web http://www.ee-web.co.uk/blog - lots of joomla tips!
Twitter https://twitter.com/#!/maxelcat


Top
 Profile  
 
PostPosted: Wed Mar 21, 2012 9:58 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Fri Jul 18, 2008 9:25 am
Posts: 270
Location: London
NERVOUS RESPONSE!!!!!!!


I do have a php.ini file that I can access in the home directory.

I added this to it:
Code:
[Date]
; Defines the default timezone used by the date functions
date.timezone = "Europe/London"


and its works

BUT this worries me because I don't really know what I am doing other than cutting and pasting from viewtopic.php?t=363681

Is this all ok????

_________________
Blog and web http://www.ee-web.co.uk/blog - lots of joomla tips!
Twitter https://twitter.com/#!/maxelcat


Top
 Profile  
 
PostPosted: Tue Mar 27, 2012 5:32 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Mar 27, 2012 4:58 am
Posts: 11
Location: Mi Ami, Flor Ida
That looks good to me. strtotime was just complaining about an improper timezone maybe one wasn't configured in the OS or it was misconfigured. The php.ini line you added will fix that.

If you want to solve the real issue at heart (no reason to other than hobby, unless you end up having time discrepancies with other sites.). Post your OS, timezone you want, and what type of administrative privileges you have and i'll help you out.

-Zaphod


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 



Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group