Skip to content

Commit

Permalink
Merge pull request #13 from sakoken/feature-push_to_database
Browse files Browse the repository at this point in the history
fixed type timestamp to datetime
  • Loading branch information
davelip authored Nov 21, 2016
2 parents a7b3e60 + 8fd3945 commit 7a09bfb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/DatabaseQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,9 @@ protected function pushToDatabase($delay, $queue, $payload, $attempts = 0)
'queue' => $this->getQueue($queue),
'payload' => $payload,
'retries' => $attempts,
'timestamp' => $availableAt->getTimestamp(),
'created_at' => $this->getTime(),
'timestamp' => date('Y-m-d H:i:s',$availableAt->getTimestamp()),
'created_at' => date('Y-m-d H:i:s',$this->getTime()) ,
'updated_at' => date('Y-m-d H:i:s',$this->getTime()),
]);
}

Expand Down

0 comments on commit 7a09bfb

Please sign in to comment.