|
Posted by Ivαn Sαnchez Ortega on 03/07/07 16:27
dredge wrote:
> Woops, forgot to include that the server is running PHP 4.3.11 I
> believe the date_default_timezone_set function is only available in
> versions 5+
You're right. I'd suggest you to upgrade to a PHP5 webserver.
On the other hand, you can always use time() to get the current timestamp,
at GMT+0, and manually substract 6 hours.
You may also try the time/date functions that format dates - even if the
internal clock is set at GMT (and it's a good idea to rely on GMT, believe
me), if the server is already well configured, you don't have any need to
manually set the timezone - the environment does that.
By the way: please use GMT+0 (or unix timestamps) to keep dates on a
database. If your country follows DST and you use the local date, you may
run into lots of problems.
--
----------------------------------
IvΓ‘n SΓ‘nchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
http://acm.asoc.fi.upm.es/~mr/
Proudly running Debian Linux with 2.6.17-1-amd64-k8 kernel, KDE3.5.3, and
PHP 5.2.0-8 generating this signature.
Uptime: 17:22:08 up 14 days, 22:23, 1 user, load average: 0.65, 0.41, 0.40
Navigation:
[Reply to this message]
|