| | Hey! I was wondering.. Is it possible to chnage the server time for my website? Or is it the same time for all servers? Thanks //Feelay |
| Nov 21, 2009 |
I guess that the server time is the local time for the city where the server is physically located.
Of course, like in my forum, the time seen by the user is the user's PC local time.
oh? what code can I use to do that (php please:P)? because my site is showing the time like "06:02:19" when it is "15:21"
on PHP4 you couldn't do that, instead it was using the server time, but that was easy to avoid, when you know where the server is or even you don't know, you can just get the server time see at your clock on your hand or in the computer and just add or minus the hours needed, I mean change the GMT to + or - something.. I personally use .htaccess that I wouldn't need to do it in all the PHP stuff everytime, like this: CODE php_value date.timezone "Europe/Vilnius" php_value date.default_latitude 54.7233 php_value date.default_longitude 25.2233 php_value date.sunrise_zenith 90.833333 php_value date.sunset_zenith 90.833333 So you can change whatever you want or the settings you live in, for example this cooridantes are the place I live in ~1km radius Just put the .htaccess file in your root directory, before public_html if you want it to work everywhere..
By the way, from a semantic point of view as well as from a generalized relativity theory point of view...
Doing this you are not changing the astahost computer server time, you are changing the way the connected users see the system clock.
I know
I think that this is exactly what the astahost forum precisely does : I see that your previous post is dated five minutes ago, in terms of my local time. And probably, your local time is not mine, and is not astahost's city time.
Well.. atm, it is 18:25 here, but the forums time is 18:35 xD
But I understand what you mean
can you help me find a code that will show the localtime on the users pc. can't find any =/
Thanks //Feelay (EDIT: I just realized that i have double posted. didn't see that earlier. I am veryvery sorry for that.) CODE now=new Date();
hour=now.getHours(); min=now.getMinutes(); sec=now.getSeconds();
Similar Topics
Keywords : change, server, time,
(0) Nevermind.. It is working now.. But what was that? (when it tryed to enter phpMyAdmin i got this (5) Hi. I recently purchased a radio for my website, but I'm having problems. I've made a (5) For some reason I can't connect to my FTP server! It was working fine yesterday, but when I (2) Hi all, I'm looking into the hosting provided here and was just wondering if the websites will MYSQL service is bouncing connections (2) Hey guys there seems to be a problem with teh MYSQL service on Gamma..ITs giving a "Too Many (1) This is a forum or a hosting server?.... (3) /rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> And now it's up again (1) http://www.xisto.com/helpdesk/index.php?cmd=status HTTP on Gamma server has gone down! Why my (4) hi i want to install a chat room for my site installation document says: start server: type java (8) I keep trying to connect to http://www.mooreo.astahost.com (my web hosting account) and it says it Is it still on the server? (4) Hello, I have a question about my account. Ive been away for quite a long time and now that I have (3) I know that at the moment the panda server is down, and our files are all being transfered, etc, etc Along with your hosted domain here ... (6) Anybody using their own domains with astahost here like me ? When you create email addresses for Check if you have problems (3) I have added a little script which may ensure that cpanel, ftp problems and downtime are the members Looking for change, server, time,
|
![]() Change Server Time? |
Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com