Closed
Description
PHP Version
8.1
CodeIgniter4 Version
4.3
Shield Version
1.0.0-beta3
Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
SQL Server 2019
Did you customize Shield?
No
What happened?
My db language is Italian and expects datetime format like 'd-m-Y H:i:s'. When you attempt to login, it tries to insert a row using the format 'Y-m-d H:i:s' by default and that's hardcoded at Shield\Models\LoginModel row 71.
shield/src/Models/LoginModel.php
Line 71 in 697f570
Steps to Reproduce
Connect to a database with a datetime expected format not equal to 'Y-m-d H:i:s' and try to login
Expected Output
The row gets insterted
Anything else?
I think the format has to be customizable without the need to extend the LoginModel and override the whole recordLoginAttempt just for this.