When I update the dashboard.module file, I see the following error.
Fatal error: Call to undefined function: date_create() in /home/
teamhcf/public_html/drupal/profiles/dashboard/modules/dashboard/
dashboard.module on line 434
Since the site is on a web server w/ PHP 4.3.11, doesn't look like
date_create function would work. Thanks.
> > On Wed, Oct 15, 2008 at 2:28 PM, jchang <
mdo1...@gmail.com> wrote:
>
> >> Fatal error: Cannot instantiate non-existent class: datetime in /
> >> drupal/profiles/dashboard/modules/dashboard/dashboard.module on line
> >> 434
>
> >> function _dashboard_is_expired($node)
> >> {
> >> $db_time = new DateTime(date('c', $node->created));
>
> >> Commented out the entire section for now so I could move on but need
> >> to have it addressed to prevent issues down the road.
>
> > It looks like the DateTime class was added in php-5.2.
>
> >
http://us3.php.net/manual/en/function.date-create.php
>
> > You can replace "new DateTime()" with the "date_create" function.
>
> > - Charlie
>
> I went ahead and committed this change, so you can just update if you are
> running from svn.
>
>
http://code.google.com/p/museum-dashboard/source/detail?spec=svn15&r=15#
>
> - Charlie- Hide quoted text -
>
> - Show quoted text -