Skip to content

Commit

Permalink
Fix "ORA-01843: not a valid month" error
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalandan committed Oct 25, 2022
1 parent 3a98df0 commit cf2ce4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/_support/Database/Seeds/CITestSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function run()
}

if ($this->db->DBDriver === 'OCI8') {
$this->db->query('alter session set NLS_DATE_FORMAT=?', ['YYYY/MM/DD HH24:MI:SS']);
$this->db->query('alter session set NLS_DATE_FORMAT=?', ['YYYY-MM-DD HH24:MI:SS']);
$data['type_test'][0]['type_time'] = '2020-07-18 15:22:00';
$data['type_test'][0]['type_date'] = '2020-01-11 22:11:00';
$data['type_test'][0]['type_time'] = '2020-07-18 15:22:00';
Expand Down

0 comments on commit cf2ce4c

Please sign in to comment.