Thread: Time on Server
-
07-06-2009, 16:53 #1
Member
- Join Date
- Jan 2008
- Location
- Stoke-on-Trent
- Posts
- 59
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.
-
08-06-2009, 02:36 #2
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.
-
08-06-2009, 16:03 #3
Member
- Join Date
- Jan 2008
- Location
- Stoke-on-Trent
- Posts
- 59
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?
-
08-06-2009, 17:08 #4
Rock _a.k.a._ Jack
Windows Hosting || Windows Reseller Hosting
Cloud Hosting || 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)


LinkBack URL
About LinkBacks



Reply With Quote



I've just been looking at my current DNS setup on my existing server and I'm a bit confused now! :)...
Hosted DNS