Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

PHP Local date problems

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

PHP Local date problems

Postby mike » Fri Jul 04, 2003 6:28 pm

This is one of my big questions starting with "why?". Here is the problem cause this question:

Today I have changed my server's timezone to EEST and the local system/hardware time to my prefered time. So we have:

[root@host root]# date
Fri Jul 4 16:53:56 EEST 2003


But when calling a date() from php I got this strange output:

Fri Jul 4 9:54:00 EDT 2003 (using date("D M j G:i:s T Y"); )

Althought the server timezone is set to EEST and local time to 16:53, PHP shows 9:54 with EDT timezone!. This happens on any timezone I select on my server... its still EDT! :( Does anyone has the same problem with me? Do you know how to solve this?

I am using:
apache 1.3.27 / php 4.3.0 / RedHat 7.3 and both system & hardware times are set equal to the prefered time.
User avatar
mike
New php-forum User
New php-forum User
 
Posts: 73
Joined: Sun May 04, 2003 4:26 am
Location: Athens

Re: PHP Local date problems

Postby WiZARD » Mon Jul 07, 2003 5:21 am

reboot
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Postby Redcircle » Mon Jul 07, 2003 9:11 am

lol :D
User avatar
Redcircle
Moderator
Moderator
 
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA

Postby WiZARD » Tue Jul 08, 2003 3:17 am

Redcircle wrote:lol :D

what's funny? in some OS like Windows2000/xp that is standart bug. cause process change only self engine what work with date, but not change in a bios....... but that funny cause that process work with bios too!!!
maby in youre Linux Apache not understand what date changed... synchronization not worker correctly or not started try reboot Apache!
interesting BIG BUG in WindowsXP than you start sheduler and say to start not today, yesterday..... after that youre date not ghanged!!!!!!! time go...... but date....... :o(...... i'm check it few days ago...... than start sheduler in monday and see date in friday..... strange but still monday! he-he-he :o) as i said before - Windows SUKS!!!!!
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Postby Oleg Butuzov » Tue Jul 08, 2003 3:34 am

Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am


Return to PHP Installation

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron