moving to a new server and strtotime error

Joomla version 1.5 is end-of-life and are no longer supported. Please use Joomla 3.x instead.

Moderator: General Support Moderators

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.
Locked
User avatar
maxelcat
Joomla! Explorer
Joomla! Explorer
Posts: 391
Joined: Fri Jul 18, 2008 9:25 am
Location: London
Contact:

moving to a new server and strtotime error

Post by maxelcat » Wed Mar 21, 2012 9:47 pm

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: Select all

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: Select all

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

User avatar
maxelcat
Joomla! Explorer
Joomla! Explorer
Posts: 391
Joined: Fri Jul 18, 2008 9:25 am
Location: London
Contact:

Re: moving to a new server and strtotime error

Post by maxelcat » Wed Mar 21, 2012 9:58 pm

NERVOUS RESPONSE!!!!!!!


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

I added this to it:

Code: Select all

[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 http://forum.joomla.org/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

MrBeeblebrox
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Tue Mar 27, 2012 4:58 am
Location: Mi Ami, Flor Ida
Contact:

Re: moving to a new server and strtotime error

Post by MrBeeblebrox » Tue Mar 27, 2012 5:32 am

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


Locked

Return to “Installation 1.5”