1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 BST and Cron Jobs

Discussion in 'XenForo Questions and Support' started by MattW, Mar 31, 2013.

  1. MattW

    MattW Well-Known Member

    How does the move to BST affect the cron jobs on the forum?

    I've noticed now that all mine have moved forward an hour, so for example, I had Chris' Board Active Cron add-on running at 03:28 to close the forum while I back up the database, and it's now running at 04:28

    Localtime on the server is linked to Europe/London

    lrwxrwxrwx 1 root root 33 Jul 25 2012 /etc/localtime -> /usr/share/zoneinfo/Europe/London
     
  2. EQnoble

    EQnoble Well-Known Member

    time only changed for you not the server I would have to assume...

    since BST is adding 1 hour, for you it is one hour later where for the server it is the same time?
     
  3. MattW

    MattW Well-Known Member

    Nope, server moved forward as well, putting it from GMT to BST.

    Code:
    # date
    Sun Mar 31 23:31:44 BST 2013
     
  4. EQnoble

    EQnoble Well-Known Member

    Ok so you moved forward+1 and your server moved forward+1 if it is not still firing at 3:28 and it is responding with firing at 4:28 than you have a situation that looks like the cron is relative to gmt+0 so (gmt-0 3:28) is = to (bst4:28)

    bst(time)is = (UTC(time) + 1 hour)

    that jump forward just happened right?
     
  5. MattW

    MattW Well-Known Member

    Yeah, it happened at 00:59 last night. I can switch the server to UTC.

    I was wondering how XF dealt with the whole date thing, because when I was on phpBB3, you set the board time separate to the server time via the ACP, and had to manually apply daylight savings on a board wide setting for guests, and each user had to set it individually themselves.
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Yeah, phpBB was a pain in that sense.

    So many people used to post every time the clocks changed! :mad:
     
  7. MattW

    MattW Well-Known Member

    The instructions for setting it was the most viewed announcement on the old forum.

    Do you do anything with the date on your server Paul?
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    No, nothing at all now.
     
  9. MattW

    MattW Well-Known Member

    Hmm, how does XF handle DST then?
     
  10. Biker

    Biker Well-Known Member

    Had absolutely no issues at all. Server and forum ticks over like clockwork.
     
  11. MattW

    MattW Well-Known Member

    What is your server running the time zone as? GMT/BST/UTC?
     
  12. Biker

    Biker Well-Known Member

    EST. :D
     
  13. MattW

    MattW Well-Known Member

    Well that's no good! ;)
     
  14. EQnoble

    EQnoble Well-Known Member

    you should be EDT then...right...

    EST during daylight savings is EDT or UTC -4
     
  15. MattW

    MattW Well-Known Member

    I've set my dev server back to UTC and having a play about with some posts on there to see how the times relate back to GMT/BST
     
  16. EQnoble

    EQnoble Well-Known Member

    the only setting that is going to make it relative and equal to your time is changing the time zone of the computer you are operating at

    however to make a job relative to your time you would need to change the job's settings to move back 1 hr, try setting it in the acp to 2:28 with your server at the proper time
     
  17. MattW

    MattW Well-Known Member

    Ah, so XF is populating the time I see from my local machine then?

    In that case, I'll leave the server time zone on the main box at BST, and just knock the cron jobs to close the board back an hour.
     
  18. Mike

    Mike XenForo Developer Staff Member

    The time you see is in your time zone. The crons are either based on GMT or the server time zone -- can't remember off hand.
     

Share This Page