|
Author |
Message |
Justin
4WebHelp Addict
Joined: 07 Jan 2002
Posts: 1060
|
Posted:
Sun Jun 02, 2002 12:05 pm (21 years, 10 months ago) |
|
Right, I want to show the current date on my website, along with the time, but the thing is my server is set to be 9 hours ahead of me, take a look at http://www.bluesweb.co.uk/ , if I used the function :
Code: |
<?
echo date ("l dS of F Y h:i:s A");
?>
|
It would give me a time 9 hours ahead of what I wanted, I just wondered how I could set an offset, so it would give me the correct time rather than the one set by default on the server.
What parameters would I need to use in my PHP code?
Thanks |
|
|
|
|
jayant
Team Member
Joined: 07 Jan 2002
Posts: 262
Location: New Delhi, India
|
Posted:
Sun Jun 02, 2002 5:00 pm (21 years, 10 months ago) |
|
|
|
|
Darren
Team Member
Joined: 05 Feb 2002
Posts: 549
Location: London
|
Posted:
Fri Jun 14, 2002 2:22 pm (21 years, 10 months ago) |
|
...you can also use Gmdate() |
|
|
|
|
Justin
4WebHelp Addict
Joined: 07 Jan 2002
Posts: 1060
|
Posted:
Sun Jun 23, 2002 4:55 pm (21 years, 10 months ago) |
|
Darren wrote: | ...you can also use Gmdate() |
ended up using Jayants way as I got some weird results with Gmdate |
|
|
|
|
Darren
Team Member
Joined: 05 Feb 2002
Posts: 549
Location: London
|
Posted:
Sun Jun 23, 2002 5:17 pm (21 years, 10 months ago) |
|
Seems to be working fine for me
What kind of 'weird results' did you get? just in case its something I haven't noticed. |
|
|
|
|
Justin
4WebHelp Addict
Joined: 07 Jan 2002
Posts: 1060
|
Posted:
Sun Jun 23, 2002 5:20 pm (21 years, 10 months ago) |
|
Darren wrote: | Seems to be working fine for me
What kind of 'weird results' did you get? just in case its something I haven't noticed. |
On a certain Cyberwings Server, it was displaying the day after on the date when I used that, fine on my eCommerceDiscovery Server though. |
|
|
|
|
|
|
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.
|
Page generation time: 0.139088 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |