$timestamp_end = mktime(0,0,0,$month,$day+1,$year);\r
}\r
$extra_query = " and i.itime>='%s' and i.itime<'%s'";\r
$timestamp_end = mktime(0,0,0,$month,$day+1,$year);\r
}\r
$extra_query = " and i.itime>='%s' and i.itime<'%s'";\r
- $extra_query = sprintf($extra_query, i18n::formatted_datetime('mysql', $timestamp_start), i18n::formatted_datetime('mysql', $timestamp_end));\r
+ $extra_query = sprintf($extra_query, DB::formatDateTime($timestamp_start), DB::formatDateTime($timestamp_end));\r
\r
$this->readLogAmount($templatename,0,$extra_query,'',1,1);\r
return;\r
\r
$this->readLogAmount($templatename,0,$extra_query,'',1,1);\r
return;\r
{\r
$localtime = getdate($this->getCorrectTime());\r
$timestamp_start = mktime(0,0,0,$localtime['mon'] - $amountMonths,1,$localtime['year']);\r
{\r
$localtime = getdate($this->getCorrectTime());\r
$timestamp_start = mktime(0,0,0,$localtime['mon'] - $amountMonths,1,$localtime['year']);\r
. ' FROM '.sql_table('item')\r
. ' WHERE iblog=' . $this->getID()\r
// don't show future items!\r
. ' FROM '.sql_table('item')\r
. ' WHERE iblog=' . $this->getID()\r
// don't show future items!\r