|
#1
| ||||
| ||||
| Date and time in PHP... I have just started using gmdate() to add the date to the top of my news postings. The problem is I get the right date, but the time is about 5 hours off. Anyone know how to get it to use my time instead of the servers? :edited for forgetfulness:
__________________ Nathan Coffield Apple iBook; AMD 3400 3GB of RAM, 250GB SATA HD, 19" Wide Screen Monitor, Windows XP Home, VMWare running Slackware 11 for development purposes, Apache 2.2, PHP 5; Home Page |
|
#2
| ||||
| ||||
| You're getting the Greenwich Meantime date, not your local date. For the local date use date() instead. This might help too. |
|
#3
| ||||
| ||||
| Greenwich Mean Time (or GMT) is sometimes called Universal Time.
__________________ TommyWillB Intel iMac 250GB external drive TommyWillB.com hosted on Mac OS X 10.4.x / Apache 1.3.x / PHP 4.x |
|
#4
| ||||
| ||||
| date() was giving me the wrong date and gmdate() was giving me the wrong time :\ anyway I can set it to use a specific time zone? or something like that?
__________________ Nathan Coffield Apple iBook; AMD 3400 3GB of RAM, 250GB SATA HD, 19" Wide Screen Monitor, Windows XP Home, VMWare running Slackware 11 for development purposes, Apache 2.2, PHP 5; Home Page |
![]() |
| Thread Tools | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| os x 10.2.4 forgets the time and date | lilbandit | Mac OS X System & Mac Software | 6 | March 26th, 2003 12:19 AM |
| Setup date and time | simon1663 | Mac OS X System & Mac Software | 3 | September 15th, 2002 11:30 AM |
| regular users cannot set date and time | solrac | Mac OS X System & Mac Software | 0 | August 12th, 2002 04:02 AM |
| Date and time lost booting into 10.1? | gidds | Mac OS X System & Mac Software | 2 | October 21st, 2001 08:32 PM |
| ntp time sync problem | WhateverJoe | Mac OS X System & Mac Software | 1 | September 20th, 2001 11:56 AM |