模型取到的資料庫時間created_at慢8小時

bigdaxin發表於2021-08-31

版本資訊

"require": {
        "php": "^7.2",
        "ext-json": "*",
        "ext-mbstring": "*",
        "ext-openssl": "*",
        "illuminate/cache": "^7.0",
        "illuminate/container": "^7.0",
        "illuminate/database": "^7.0",
        "illuminate/bus": "^7.0",
        "illuminate/events": "^7.0",
        "illuminate/config": "^7.0",
        "illuminate/view": "^7.0",
        "illuminate/session": "^7.0",
        "illuminate/filesystem": "^7.0",
        "illuminate/validation": "^7.0",
        "illuminate/encryption": "^7.0",
        "illuminate/hashing": "^7.0",
        "illuminate/redis": "^7.0",
        "illuminate/notifications": "^7.0",
        "illuminate/queue": "^7.0",
        "illuminate/http": "^7.0",
        "intervention/image": "^2.5",
        "monolog/monolog": "^2.0",
        "laminas/laminas-stratigility": "^3.2",
        "laminas/laminas-httphandlerrunner": "^1.1.0",
        "laminas/laminas-diactoros": "^2.4.1",
        "nikic/fast-route": "^1.3.0",
        "franzl/whoops-middleware": "^1.1.0",
        "tobscure/json-api": "^0.4.1",
        "dflydev/fig-cookies": "^2.0.0",
        "guzzlehttp/guzzle": "^6.3.3",
        "qcloud/cos-sdk-v5": "^2.0",
        "tencentcloud/tencentcloud-sdk-php": "^3.0",
        "league/flysystem": "^1.0.55",
        "symfony/console": "^5.0",
        "league/oauth2-server": "~8.1.1",
        "lcobucci/jwt": "~3.3.1",
        "overtrue/easy-sms": "^1.1",
        "dragonmantank/cron-expression": "^2.3",
        "ramsey/uuid": "^3.9",
        "phpoffice/phpspreadsheet": "^1.10"
    },

問題!!!

模型取到的資料庫時間created_at慢8小時

模型取到的資料庫時間created_at慢8小時

模型取到的資料庫時間created_at慢8小時

排錯順序

。。。。冥想加百度

解決

升級說明《Laravel 7 中文文件》

模型取到的資料庫時間created_at慢8小時

參考:部落格:資料儲存的 timestamp 時間正確 但是 Laravel 取出來的時間慢的 8 小...

本作品採用《CC 協議》,轉載必須註明作者和本文連結

相關文章