-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHPORM-234 Convert dates in DB Query results (#3119)
Use the current timezone when reading an UTCDateTime
- Loading branch information
Showing
6 changed files
with
47 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,11 @@ | |
|
||
namespace MongoDB\Laravel\Tests; | ||
|
||
use Carbon\Carbon; | ||
use Illuminate\Auth\Passwords\PasswordBroker; | ||
use Illuminate\Support\Facades\Auth; | ||
use Illuminate\Support\Facades\DB; | ||
use Illuminate\Support\Facades\Hash; | ||
use MongoDB\BSON\UTCDateTime; | ||
use MongoDB\Laravel\Tests\Models\User; | ||
|
||
use function bcrypt; | ||
|
@@ -63,7 +63,7 @@ function ($actualUser, $actualToken) use ($user, &$token) { | |
$reminder = DB::table('password_reset_tokens')->first(); | ||
$this->assertEquals('[email protected]', $reminder->email); | ||
$this->assertNotNull($reminder->token); | ||
$this->assertInstanceOf(UTCDateTime::class, $reminder->created_at); | ||
$this->assertInstanceOf(Carbon::class, $reminder->created_at); | ||
|
||
$credentials = [ | ||
'email' => '[email protected]', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters