Results 1 to 4 of 4

Thread: Time on Server

  1. #1
    paulmann is offline Member
    Join Date
    Jan 2008
    Location
    Stoke-on-Trent
    Posts
    59

    Default Time on Server

    I've got a page that stores an entry into a mysql database. One of the fields will contain the time the item is posted and I get this by using the php $now = time("now"). This provides the time on the server but I assume it is on GMT as it it about one hour behind. That is, if I process the page at 17:41 it will store the time equivalent of 16:41.

    I've got two questions.

    First of all does the server always stick to GMT throughout the year? I've recently been moved to islander from cambridge and I'm sure that cambridge's server time moved from GMT to BST whenever it was the clocks changed.

    Secondly, what can I do to time("now") to make sure I always capture the current time? I know I can add 3600 (an extra hour) to the GMT to get BST but then I'll have a similar problem when the clocks go back again.

    Thanks.

  2. #2
    eUK-Ralf's Avatar
    eUK-Ralf is offline Employee
    Join Date
    Apr 2008
    Posts
    217

    Cool

    Hi Paul,

    It is not possible to change the time zone on the current server(islander).
    We have a server of same configuration with time zone BST.
    If you want, we will migrate your account to new server(luton).

    Please drop an email at support[at]eukhost.com from your registered email address for account migration.

  3. #3
    paulmann is offline Member
    Join Date
    Jan 2008
    Location
    Stoke-on-Trent
    Posts
    59

    Default

    Apart from the time, everything else seems to be quite stable so I think I'll leave it is as it is and try to find a work around.

    One thing though - the server time is about 5 minutes slow. Can that at least be fixed?

  4. #4
    Rock's Avatar
    Rock is offline Technical Support (eUKhost.com)
    Join Date
    Oct 2006
    Location
    localhost
    Posts
    3,375

    Smile

    Quote Originally Posted by paulmann View Post
    Apart from the time, everything else seems to be quite stable so I think I'll leave it is as it is and try to find a work around.

    One thing though - the server time is about 5 minutes slow. Can that at least be fixed?
    The time has been corrected, thank you for pointing that out

    Rock _a.k.a._ Jack
    Windows Hosting || Windows Reseller Hosting
    Cloud Hosting 100% UPTIME! || Powerful Dedicated Servers
    Follow eUKhost on Twitter || Join eUKhost Community on Facebook

    For complaints, grievances or suggestions kindly email our FeedBack Dept.
    Proper action will be taken accordingly & instantaneously!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •