Skip to content

Commit

Permalink
Move time concatenation up one line
Browse files Browse the repository at this point in the history
  • Loading branch information
bcrowe committed Nov 12, 2013
1 parent edd8eb6 commit 2fa9423
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Cake/Utility/Time.php
Expand Up @@ -437,8 +437,7 @@ public static function niceShort($dateString = null, $timezone = null) {
public static function daysAsSql($begin, $end, $fieldName, $timezone = null) {
$dateTime = new \DateTime;
$begin = $dateTime->setTimestamp(static::fromString($begin, $timezone))
->format('Y-m-d')
. ' 00:00:00';
->format('Y-m-d') . ' 00:00:00';
$end = $dateTime->setTimestamp(static::fromString($end, $timezone))
->format('Y-m-d') . ' 23:59:59';

Expand Down

0 comments on commit 2fa9423

Please sign in to comment.