protected function commerce_reports_handler_field_date::_normalizeMonthly in Commerce Reporting 7.3
File
- includes/
views/ commerce_reports_handler_field_date.inc, line 33 - Views field handler for the created date on orders.
Class
- commerce_reports_handler_field_date
- @file Views field handler for the created date on orders.
Code
protected function _normalizeMonthly($timestamp) {
// Workaround for PHP 5.2; PHP 5.3 works with 'first day of this month'
return strtotime(date('Y-m', strtotime('this month UTC', $timestamp)) . ' UTC');
}