CodeIgniter Forums
Time of creation of migration files in UTC, although the time zone is set - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Time of creation of migration files in UTC, although the time zone is set (/showthread.php?tid=88056)



Time of creation of migration files in UTC, although the time zone is set - jorge - 07-12-2023

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


RE: Time of creation of migration files in UTC, although the time zone is set - kenjis - 07-12-2023

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