Bug Report #3966

method date::formatted_time() is unknown

Added by Andrey Pankov about 3 years ago. Updated about 3 years ago.

Status:ClosedStart date:05/04/2011
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:v3.1.4
Resolution:invalid Points:

Description

That's because my php have date/time support enabled (as per phpinfo()). Not sure what does it mean ever, but looks like PHP's internal Date class takes precedence while finding Date.

PHP Version 5.3.5-pl1-gentoo
dev-php/PEAR-Date is not installed

History

#1 Updated by Andrey Pankov about 3 years ago

Fatal error: Call to undefined method date::formatted_time() in /home/none/dev/sc.info/system/classes/kohana/log.php on line 143

const VERSION  = '3.1.3';
const CODENAME = 'araea';

#2 Updated by Jeremy Bush about 3 years ago

  • Target version set to v3.1.4

As far as I know, there's isn't a built in "Date" class. There's "DateTime". Make sure Kohana is finding the right class: `var_dump(Kohana::find_file('classes', 'date'))`

#3 Updated by Andrey Pankov about 3 years ago

Sorry. Was really issue on my end. And thank you for the help.

#4 Updated by Jeremy Bush about 3 years ago

  • Status changed from New to Closed
  • Resolution set to invalid

Also available in: Atom PDF