diff --git a/src/Adapter/SQLite.php b/src/Adapter/SQLite.php index bf2588d..30bb402 100644 --- a/src/Adapter/SQLite.php +++ b/src/Adapter/SQLite.php @@ -191,8 +191,8 @@ class SQLite implements AdapterInterface, MigrateInterface, SqlAdapterInterface return (int) in_array($string, explode(',', $string_list)); }, 2); - $pdo->sqliteCreateFunction('day', fn($date) => ( new \DateTime($date) )->format('d'), 1); - $pdo->sqliteCreateFunction('month', fn($date) => ( new \DateTime($date) )->format('m'), 1); + $pdo->sqliteCreateFunction('day', fn($date) => ( new \DateTime($date) )->format('j'), 1); + $pdo->sqliteCreateFunction('month', fn($date) => ( new \DateTime($date) )->format('n'), 1); $pdo->sqliteCreateFunction('year', fn($date) => ( new \DateTime($date) )->format('Y'), 1); }