tags:

views:

30

answers:

0

Hello, I have a problem with DateTime class. I'm using xampp server:

    Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
and there were no problems at all, but on the other server (wamp):
    Apache/2.2.11 (Win32) SVN/1.6.4 DAV/2 PHP/5.3.0
web page crashes and does not even load at all. I'm crushed...

This is the line I'm using to construct new DateTime object:

    $datetime = new DateTime(strftime("%Y-%m-%d %H:%M:%S",time()));