Permalink
Browse files

fix bug where carbon didnt use timestamp

  • Loading branch information...
1 parent 04bf433 commit e4ee2c7487b934580e61953f0ce43e419cf36da0 @kruisdraad kruisdraad committed Jan 11, 2017
Showing with 2 additions and 2 deletions.
  1. +1 −1 composer.json
  2. +1 −1 src/Rbl.php
View
@@ -1,7 +1,7 @@
{
"name": "abuseio/collector-rbl",
"description": "Collector addon for handling notifications from RBL lists",
- "version": "1.3.3",
+ "version": "1.3.4",
"keywords": ["laravel", "abuseio", "parser", "rbl"],
"homepage": "http://abuse.io",
"type": "library",
View
@@ -323,7 +323,7 @@ private function scanAddress($address)
* today's timestamp used as report time (today 00:00) to prevent a lot of duplicates on the
* same day. Using the same time will aggregate and deduplicate events into 1 per day.
*/
- $incident->timestamp = Carbon::today();
+ $incident->timestamp = Carbon::today()->timestamp;
$incident->information = json_encode(
array_merge(

0 comments on commit e4ee2c7

Please sign in to comment.