# Bugs #2852: calendar -\> php fatal error - $exception\_time-\>format('server')

**URL:** <https://help.egroupware.org/t/bugs-2852-calendar-php-fatal-error-exception-time-format-server/45549>\
**Category:** eGW-tracker\
**Created:** [February 11, 2011, 2:39pm UTC](https://help.egroupware.org/t/bugs-2852-calendar-php-fatal-error-exception-time-format-server/45549 "2011-02-11T14:39:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tracker-3](https://help.egroupware.org/letter_avatar_proxy/v4/letter/t/d07c76/32.png) [@tracker-3](https://help.egroupware.org/u/tracker-3)\
**Post date:** [February 11, 2011, 2:39pm UTC](https://help.egroupware.org/t/bugs-2852-calendar-php-fatal-error-exception-time-format-server/45549/1 "2011-02-11T14:39:39Z")

</div>

Ticket modified by Ralf Becker at 2011/02/11 15:39  
Tracking System: Bugs  
Category: ActiveSync  
Version: Trunk  
Status: Open  
Resolution: Duplicate  
Completed: 0%  
Priority: 5 - medium  
Created By: camel camel  
Created on: 2011/02/11 14:43  
Assigned to: Philip Herbert  
Summary: #2852 - calendar -\> php fatal error - $exception\_time-\>format(‘server’)  
this time error belongs to line: 690

$exception-\>starttime = $exception\_time-\>format(‘server’);

via debuglog i printed  
$exception-\>starttime = ‘20111102’

and this will be formatted via:  
$exception-\>starttime = $exception\_time-\>format(‘server’);

is this true ? - or is there a error, that it try to format a time to date format ?

[Fri Feb 11 14:35:24 2011] [error] [client 89.104.29.101] PHP Fatal error: Call to a member function format() on a non-object in /var/www/egroupware\_TRUNK/htdocs/egroupware/calendar/inc/class.calendar\_activesync.inc.php on line 690

Comment by Ralf Becker at 2011/02/11 15:39:  
Ok, it’s a different line number, thought the line number is NOT from the up to date version: line 690 is part of a comment. Please use svn update code, if reporting bugs in Trunk.  
Ralf  
Comment by camel camel at 2011/02/11 15:31:  
this is not the same !!!  
see code !

Comment by camel camel at 2011/02/11 15:30:  
could it be fixed, if i change the line  
from:  
exception-\>starttime = $exception\_time-\>format(‘server’);  
to:  
exception-\>starttime = (int)$exception\_time-\>format(‘server’);

???  
Comment by Ralf Becker at 2011/02/11 15:27:  
Please answer or add to the existing ticket, and not opening new ones every time!

linked entries:  
[http://www.egroupware.org/egroupware/index.php?menuaction=tracker.tracker\_ui.edit&tr\_id=2852&no\_popup=1](http://www.egroupware.org/egroupware/index.php?menuaction=tracker.tracker_ui.edit&tr_id=2852&no_popup=1)
