Moving to a new server - time differences?

Discussion in 'Site & Server Administration' started by bbrian017, Sep 2, 2011.

  1. #1
    Hi everyone,

    I've been moving some of my websites to a new server but one thing I have noticed is as follows. Lets says site A has a front page of stories that were submitted 1 hour ago. well when I move the site to the new server and mysql database the story will say it was submitted a few seconds ago and the rss script thinks it's 5 hour until it has to run next. So if the script was supposed to be ran in 40 minutes (cron job) on the old server it will say it needs to run in 5 hours and 40 minutes on the new server.

    Once the 5 hours is caught up the script will start working again.

    What can be causing this?
     
    bbrian017, Sep 2, 2011 IP
  2. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #2
    May be due to time difference on the server.. ensure the date/time and the timezone is correct on both the servers.
     
    madaboutlinux, Sep 3, 2011 IP
  3. bbrian017

    bbrian017 Well-Known Member

    Messages:
    2,990
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    170
    #3
    Thanks madaboutlinux that was it, it was so odd lol but it's all good now!

    thanks for the help!
     
    bbrian017, Sep 5, 2011 IP