gameratheart
Aug 16 2006, 08:09 PM
| | I noticed a problem on my website a while ago, whereby a clock I'd put onto each page always seemed to put the date 2 months back. The clocks are run by an SSI script that takes the date and time information from the server itself. Of course, the first thing I did was check the script, and I did notice a few problems, in the script, but even after fixing it the date is still two months behind!
I decided to do some investigation on this, and tried to see if I could find out what the server time on Gamma reportedly is. I finally found it when I looked at the php Info.
Gamma Server's "Server Time" clock has somehow wound up two months behind, and is now claiming it is June instead of August. This is causing a few problems with my scripts, so if you're not too busy already, can you please look into fixing this for me?
|
Reply
BuffaloHELP
Aug 18 2006, 01:41 AM
I am unaware of this issue, so I searched for server time display script. HTML <script type="text/javascript">
// Current Server Time script (SSI or PHP)- By JavaScriptKit.com (http://www.javascriptkit.com) // For this and over 400+ free scripts, visit JavaScript Kit- [url=http://www.javascriptkit.com/]http://www.javascriptkit.com/[/url] // This notice must stay intact for use.
//Depending on whether your page supports SSI (.shtml) or PHP (.php), UNCOMMENT the line below your page supports and COMMENT the one it does not: //Default is that SSI method is uncommented, and PHP is commented:
var currenttime = '<!--#config timefmt="%B %d, %Y %H:%M:%S"--><!--#echo var="DATE_LOCAL" -->' //SSI method of getting server date //var currenttime = '<? print date("F d, Y H:i:s", time())?>' //PHP method of getting server date
///////////Stop editting here/////////////////////////////////
var montharray=new Array("January","February","March","April","May","June","July","August", "September","October","November","December") var serverdate=new Date(currenttime)
function padlength(what){ var output=(what.toString().length==1)? "0"+what : what return output }
function displaytime(){ serverdate.setSeconds(serverdate.getSeconds()+1) var datestring=montharray[serverdate.getMonth()]+" " +padlength(serverdate.getDate())+", "+serverdate.getFullYear() var timestring=padlength(serverdate.getHours())+":" +padlength(serverdate.getMinutes())+":"+padlength(serverdate.getSeconds()) document.getElementById("servertime").innerHTML=datestring+" "+timestring }
window.onload=function(){ setInterval("displaytime()", 1000) }
</script>
<p><b>Current Server Time:</b> <span id="servertime"></span></p>
<p style="font: normal 11px Arial">This free script provided by<br /> <a href="http://www.javascriptkit.com">JavaScript Kit</a></p> If the above code is the right one to show the server time in SSI, the time displayed using above code shows the correct date and time in GMT+4 from EDT. Check the below link for script in action: buffalohelp.net/servertime.shtmlI am also hosted with gamma server. Let me know how this goes.
Reply
gameratheart
Aug 28 2006, 02:59 AM
The script takes the time from the server itself, so it actually is using the time from wherever the website is based. It is supposed to therefore be in GMT, without any Daylight Saving Changes. But it isn't a problem with that script - it's a problem with gamma server itself. It's behind by two months, and I don't know how to change it.
Reply
BuffaloHELP
Aug 28 2006, 03:29 AM
Please read the response I made carefully. The link provided shows in GMT time and date correctly. I was noting that it's GMT time from EDT +4 (GMT+4 from EDT). EDT is Eastern Daylight-saving Time, United States East Coast time zone. Server time is correctly identified in GMT time and date, repeat. And therefore you must check your script, ini or config setting. There is nothing wrong with the server time.
Reply
electriic ink
Aug 28 2006, 10:54 AM
If the time is exactly 2 months behind then why not fix it the cheap and easy way: open up the file and find the variable which contains the months and add "2" to it. I've checked as well, the server's time is correct. Are you sure it's not the script?
Reply
BuffaloHELP
Sep 11 2006, 06:17 AM
Topic seems to be resolved since no more replies. If you would like to continue this disucssion please PM a moderator.
Reply
Similar Topics
Keywords : gamma servers months- Trap17 Host Servers
- Are they still the same? (1)
- Gamma Servers' Problem
- This topic is for all who have their account on Gamma Server & ha (1)
Okay I see a lot of chaos all around and my site zoebelkin.co.cc is still down. Everything including
FTP, CPanel etc are down. My site is on the gamma server. I see that all the servers are moved
around a lot and the IP blocks also changing. So what is the new IP set for 'gamma'. When
doing a reverse check on gamma I see it is still assigned to it's previous IP but when I'm
trying to access the previous IP's port 80 then I get a Server not found error. Also the
gamma.xisto.com name for the server fails to open the default Apache page which it used to ...
Irc Servers/ Channels
- Can we make our own free IRC channel (13)
I was wondering if anyone knows where we can find a server and register an IRC channel there?...
What's Happening With Trap17 Servers? [resolved]
- My page is down and cpanel is different (1)
What's happening with trap17 hosting servers since around 10 hours ago? My page is down, I have
no files hosted, no databases, not even index.htm or index.php, and cpanel looks to have been
upgraded. Are you doing any upgrade to the server gamma? Any information would be usefull!
Thanks...
What's Up With The Gamma Server?
- (3)
It is all down, can anyone explain what is going on? This doesn't look like it is a routine
server maintenance, it has been going on for 6 hours since I last check and still no improvements
/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" />...
Trap17 Mail Exchange Servers
- (4)
Ok, I recently downloaded Mozilla Thunderbird to try and configure it to my websites e-mail, so i
can recieve and send mail through it. But it's not working for me In the Cpanel mail management
it says that the outgoing and imcoming are both mail.hogwartsmagic.net can someone help me
configre this?...
Are The Servers Down
- (4)
Just wondering if the servers are down. for some reason I cant acess my site my cpanel, it would be
really nice if they atleast sent us a message that they will be doing updates if this is whats going
on.....
Is A Smtp Server Setup On Trap17 Servers?
- I need it for my website's DRUPAL registration. (9)
Hey guys! I can't ask in shoutbox so I've got to use the slow way. : / As you've
probably read, I need it for my website's registration, I've learned this by asking in the
Drupal(a CMS) Support, this good man said that I should have an SMTP server setup for it to work,
unfortunately, I don't know if Trap17 haves it and I don't know how to access it. If there
is none, could you recommend a free solution? If there is one, could you be so kind of teaching me
how to use/access it? Thanks by now. P.S: Go Trap17 crew!...
About Private Name Servers
- (1)
I just want to know , that is it possible to have name servers of own choice from some paying
hosting company? ? something like , ns1.mydomain.com instead of ns1.hostingcompanydomain.com. i
think its not possible??...
Non Responsive Servers.
- Had been some time already. (10)
This problem has been affecting me for long. On and off, the server which hosted my hosting account
seemed unresponsive. I'm able to ping my own account though. Sometimes I'm able to load my
site, and sometimes I unable to. I'm very sure it's not the content of the page that I'm
loading because I've tried entering my cpanel, it cannot respond as well. Also, I've tried
loading a simple small-sized JPG image to test its response, which sometimes fails as well. Once or
twice doesn't affect me much but this problem comes pretty frequent now. ...
Either Gamma Is Slow, Or My Net Is Bad
- My website takes forever to load (3)
If I'm using the admin console of Mambo, or the rest of my site for the matter, I experince
really long page load times. I click on a link, wait, see some life (the banner at the top of the
Mambo admin console shows up), wait some more, see some stuff from the page load, and wait again
until it's all finished. So is this a problem with MySQL, some other service, a problem with
Gamma, or with Verizon DSL (which I use)?...
How To Find Hosting Server's Php Version
- which version of PHP is installed? (2)
Hello.. which version of Php is installed on this server? Is it php4 or php5 ? I was trying to
install the forums *Phpbb Plus on my hosting but i was showing blank pages etc and some times other
problems.... i think you dont have php5 ?more ever , has some one installed phpbb plus on the trap
17 hosting?? Topic title modified. Place topic titles specific to your post. ...
Nameserver For Trap17.com Question
- the NS servers are down? (4)
I've been having some great difficulty trying to delegate my domain to Trap17.com. After a
little research to see whether I should use the IP addresses of the nameservers, I found out that my
ISP's DNS servers have no record of "ns1.trap17.com" or "ns2.trap17.com". Are there IP
addresses for them, or are they down? Take topic title and description seriously. Name them
relating to your post. "Servers Down" can mean anything. Be specific! ...
Is Trap17 Hosts Games Servers ?
- Question to Admin (7)
I'm looking serwer for hosting Never Winter Game Module. Is there is possible to do this on
Trap17 servers ? NWN is MMORPG game, with module based on Master of The Rings. (this MMORPG mean 40
players MAX so not much for good connection) I mean free hosting, for start and module testing.
When they end we can talk abount payment /cool.gif' border='0' style='vertical-align:middle'
alt='cool.gif' /> Best Regards /smile.gif' border='0' style='vertical-align:middle'
alt='smile.gif' /> -------------------- Practice is when evrything is work but no one know w...
Your Server's Speed Is Getting Lower & Lower.
- (4)
Hi admin of trap17 when i got a host from september , the speed is fast & I found it,s getting
more & more lower the speed & what,s wrong with the server?...
Cpanel And Ftp !
- are servers down or what? (5)
i guess i'm not the only one with these problems.. i cant enter my cpanel (or at least it takes
about 15-20 mins..) and i cant access FTP server... what is going on? nether i can colect mail
from my site mail server... but still i can access my site... HELP!...
Looking for gamma, servers, time, months
|
|
Searching Video's for gamma, servers, time, months
|
advertisement
|
|