Home > Archive > PHP Language > February 2005 > 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]
|
|
| liquidice 2005-02-28, 8:55 am |
| Hiya,
Quick question. The server time on my webhost is an hour ahead (GMT+1). Now,
on my website, I have a stats section which outputs when the page was last
modified but will output the incorrect time because of the server time. Is
there anyway I can take an hour off the last modified time so that the last
mod time displays as GMT time?
Thanks.
| |
| Sebestyén Dénes 2005-02-28, 8:55 am |
| liquidice írta:
> Hiya,
>
> Quick question. The server time on my webhost is an hour ahead (GMT+1). Now,
> on my website, I have a stats section which outputs when the page was last
> modified but will output the incorrect time because of the server time. Is
> there anyway I can take an hour off the last modified time so that the last
> mod time displays as GMT time?
>
> Thanks.
Try the gmdate() function
| |
| liquidice 2005-02-28, 8:55 am |
| works perfect, many thanks.
"Sebestyén Dénes" <titan@chello.hu> wrote in message
news:keDUd.71488$2e4.64371@news.chello.at...
> liquidice írta:
>
> Try the gmdate() function
| |
| Markus G. Klötzer 2005-02-28, 3:56 pm |
| Sebestyén Dénes <titan@chello.hu> wrote:
> Try the gmdate() function
I have been doing that for a while, the problem arrives again when
summertime comes and then all time are an hour out again :-(
cu
mgk
--
"Don't worry.No matter how fast your processor is,
software engineers/game's writer's are working as
we speak to slow it down;-)"
| |
| liquidice 2005-02-28, 3:56 pm |
| I take it you haven't found a way around the problem then apart from
removing gmdate() from all the pages which use that function when summer
time comes?
"Markus G. Klötzer" <DengejaaUveso@eze-domains.com> wrote in message
news:cvv7u3.5ms.1@news.mgk.org.uk...
> Sebestyén Dénes <titan@chello.hu> wrote:
>
>
> I have been doing that for a while, the problem arrives again when
> summertime comes and then all time are an hour out again :-(
> cu
>
> mgk
> --
> "Don't worry.No matter how fast your processor is,
> software engineers/game's writer's are working as
> we speak to slow it down;-)"
| |
| Markus G. Klötzer 2005-02-28, 3:56 pm |
| "liquidice" <so_solid_chyld@hotmail.com> wrote:
> I take it you haven't found a way around the problem then apart from
> removing gmdate() from all the pages which use that function when summer
> time comes?
My solution was to mark the time as "GMT", then it is always right :-)
just out of sync with the rest of the UK
removing gmdate in the summer would be of no benefit as the OPs server
then would run at GMT+2
cu
mgk
--
Es ist offensichtlich viel einfacher, eine kuenstliche Intelligenz zu bauen, die
den Weltmeister im Schach schlaegt, als einen halbwegs anstaendig funktionierenden
Putzroboter zu bauen. - Hauke Reddmann in drsm
|
|
|
|
|