Welcome Guest, Not a member yet? Register   Sign In
Time of creation of migration files in UTC, although the time zone is set
#1

I run:

Code:
./spark migrate:create create_users_table
And result:

Code:
CodeIgniter v4.3.6 Command Line Tool - Server Time: 2023-07-13 01:18:03 UTC+03:00

File created: APPPATH/Database/Migrations/2023-07-12-221803_CreateUsersTable.php
The server time does not match the time in the file name!

In app/Config/App.php and in php.ini I set Europe/Vilnius time zone
Reply
#2

(This post was last modified: 07-12-2023, 06:10 PM by kenjis.)

The generated migration file name is in UTC, and should be in UTC.


Code:
$ ./spark migrate:create create_users_table

CodeIgniter v4.3.6 Command Line Tool - Server Time: 2023-07-13 10:06:32 UTC+09:00

File created: APPPATH/Database/Migrations/2023-07-13-010632_CreateUsersTable.php

Changed $appTimezone to Europe/Vilnius.

Code:
$ ./spark migrate:create create_users_table

CodeIgniter v4.3.6 Command Line Tool - Server Time: 2023-07-13 04:07:30 UTC+03:00

File created: APPPATH/Database/Migrations/2023-07-13-010730_CreateUsersTable.php
Reply




Theme © iAndrew 2016 - Forum software by © MyBB