This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Webmaster forum > August 2006 > I have a question on server time





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author I have a question on server time
John

2006-08-21, 3:36 am

I have a host that is running linux redhat and they are back east. I
have on the west coast and some of my scripts do not have the time
offset built into them. Being a NOOB it will be pretty difficult to
find which file I need to enter the date / time stuff. Is there a way
that I can upload some sort of file to always correct the time?




Thanks...



John
Jerry Stuckle

2006-08-21, 6:49 am

John wrote:
> I have a host that is running linux redhat and they are back east. I
> have on the west coast and some of my scripts do not have the time
> offset built into them. Being a NOOB it will be pretty difficult to
> find which file I need to enter the date / time stuff. Is there a way
> that I can upload some sort of file to always correct the time?
>
>
>
>
> Thanks...
>
>
>
> John


What's the "correct time"? I'm on the east coast, so your server time
is fine to me. Others here are from other parts of the world - Great
Britain, the Philippines and so on. If they viewed your site, what
would be the "correct time"?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
rf

2006-08-21, 6:49 am

Jerry Stuckle wrote:
> John wrote:


[color=darkred]
> What's the "correct time"? I'm on the east coast, so your server time is
> fine to me. Others here are from other parts of the world - Great
> Britain, the Philippines and so on. If they viewed your site, what would
> be the "correct time"?


Why does the time matter?

If it's to timestamp something in a server side database then the current
server time applies.

If it's to tell me, the viewer, what time it is then I already know what
time it is in Australia.

--
Cheers
Richard.


Andy Dingley

2006-08-21, 6:52 pm

John wrote:

> I have a host that is running linux redhat and they are back east. I
> have on the west coast and some of my scripts do not have the time
> offset built into them.


So fix the scripts. _They're_ where the problem is, not the server
timestamp.

Next person who asks me this gets their fingers broken. 8-(

William Tasso

2006-08-21, 6:52 pm

Fleeing from the madness of the SBC http://yahoo.sbc.com jungle
John <John_nospam@hhhhhhhhhh.com> stumbled into news:alt.www.webmaster
and said:

> I have a host that is running linux redhat and they are back east. I
> have on the west coast and some of my scripts do not have the time
> offset built into them. Being a NOOB it will be pretty difficult to
> find which file I need to enter the date / time stuff. Is there a way
> that I can upload some sort of file to always correct the time?


Language/environment?

What do the scripts do with the time?

--
William Tasso

http://williamtasso.com/words/what-is-usenet.asp
John

2006-08-21, 6:52 pm


The scripts display EST and I need PST.


I don't want to have to change every script that shows a date/time. Is
there a way to make like one file that will always change the time. I
mean can I insert: $currentTime=time()-(3*60*60); anywhere in the php
file that displays the date/time?


>
>What do the scripts do with the time?


William Tasso

2006-08-21, 6:52 pm

Fleeing from the madness of the SBC http://yahoo.sbc.com jungle
John <John_nospam@hhhhhhhhhh.com> stumbled into news:alt.www.webmaster
and said:


>
> The scripts display EST and I need PST.


I'm going to assume that you've read and understood the comments made by=
=

others in this thread and that you have some sensible reason for showing=
=

the time at your location.

>
> I don't want to have to change every script that shows a date/time. Is=


> there a way to make like one file that will always change the time. I
> mean can I insert: $currentTime=3Dtime()-(3*60*60); anywhere in the ph=

p
> file that displays the date/time?


almost certainly - although you'll have to wait for a PHP guru to wander=
=

past for the detail. perhaps date/time manipulation is mentioned in the=
=

langusge documentation?

-- =

William Tasso

http://williamtasso.com/words/what-is-usenet.asp
CJM

2006-08-21, 6:52 pm


"John" <John_nospam@hhhhhhhhhh.com> wrote in message
news:s6jje2hdpol4c0shti11co6s2fmt2h02vb@4ax.com...
>
> The scripts display EST and I need PST.
>


Out of interest, why do you want to show the server time?

CJM


John

2006-08-21, 6:52 pm

Hi - I don't want to show the server time, I want to show my time PST
and not the servers timestamp EST.






>Out of interest, why do you want to show the server time?
>
>CJM
>


Charles Sweeney

2006-08-21, 6:52 pm

John wrote

> I have a host that is running linux redhat and they are back east. I
> have on the west coast and some of my scripts do not have the time
> offset built into them.


East and west coast of Australia?

--
Charles Sweeney
http://CharlesSweeney.com
Charles Sweeney

2006-08-21, 6:52 pm

Andy Dingley wrote

> John wrote:
>
>
> So fix the scripts. _They're_ where the problem is, not the server
> timestamp.
>
> Next person who asks me this gets their fingers broken. 8-(


lol!

--
Charles Sweeney
http://CharlesSweeney.com
CJM

2006-08-22, 6:38 am


"John" <John_nospam@hhhhhhhhhh.com> wrote in message
news:bt2ke298o4uovop5aiqorc3u97fl5ladun@4ax.com...
> Hi - I don't want to show the server time, I want to show my time PST
> and not the servers timestamp EST.
>
>


Then get the clients date/time using javascript (getDate()).

CJM


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews