vendredi 21 février 2020

Incorrect datetime value 1292 laravel 5.7 just from a specific date

I saw this error questions and answers but my case is a little bit weird!

I'm using Laravel 5.7 with these database settings:

        'mysql' => [
            'driver' => 'mysql',
            'host' => env('DB_HOST', '127.0.0.1'),
            'port' => env('DB_PORT', '3306'),
            'database' => env('DB_DATABASE', 'forge'),
            'username' => env('DB_USERNAME', 'forge'),
            'password' => env('DB_PASSWORD', ''),
            'unix_socket' => env('DB_SOCKET', ''),
            'charset' => 'utf8mb4',
            'collation' => 'utf8mb4_unicode_ci',
            'prefix' => '',
            'prefix_indexes' => true,
            'strict' => true,
            'engine' => null,
        ],

One of my tables records user birth date with timestamp format.

This works fine till user age is smaller than 1969-02-22 00:00:00; means 1970-02-22 00:00:00 is OK but first one occurs an error!

Do you have any Idea about this case?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/37OEQeY
via IFTTT

1 commentaire:

  1. Water Hack Burns 2lb of Fat OVERNIGHT

    Well over 160k women and men are trying a simple and SECRET "liquids hack" to drop 2 lbs each and every night while they sleep.

    It's effective and works with everybody.

    Here's how to do it yourself:

    1) Go get a drinking glass and fill it half the way

    2) Then do this proven hack

    you'll become 2 lbs lighter the very next day!

    RépondreSupprimer