Log message #4199069

# At Username Text
# Aug 20th 2019, 20:01 daniel.upshaw Not using `FrozenTime`?
# Aug 20th 2019, 20:00 maymeow changed `'created' => \Cake\Chronos\Date::now(),` to `'created' => \Cake\Chronos\Date::now()->toDateTimeString(),` and its now working
# Aug 20th 2019, 19:59 maymeow @ricksaccous https://gist.github.com/MayMeow/c03b0cda19e0703bede81190fa13c56e
# Aug 20th 2019, 19:56 ricksaccous whatever
# Aug 20th 2019, 19:56 ricksaccous or i mean obfuscate them
# Aug 20th 2019, 19:56 ricksaccous feel free to comment out stuff/etc
# Aug 20th 2019, 19:56 ricksaccous can you gist the migration? I'm curious now
# Aug 20th 2019, 19:55 maymeow i think its same CEST... when i change app config to CEST or europe/something even on datasource config still not working
# Aug 20th 2019, 19:54 maymeow my notebook has CEST timezone and mysql has SYSTEM
# Aug 20th 2019, 19:54 ricksaccous so you have the default admin on those?
# Aug 20th 2019, 19:54 ricksaccous weird...
# Aug 20th 2019, 19:54 maymeow i didnt have this problem on dokce or on review server on digital ocean but on my notebook yes
# Aug 20th 2019, 19:54 ricksaccous hehe
# Aug 20th 2019, 19:53 ricksaccous also I still use seeds I just make sure they only run once ;) I do that by doing a find() and if there are results I just skip the seed
# Aug 20th 2019, 19:53 ricksaccous okay well it depends how you are doing the migration
# Aug 20th 2019, 19:53 maymeow migrations can run only once thats why
# Aug 20th 2019, 19:52 maymeow @ricksaccous no migration. I wanted to create admin on install application so i created new migration where i insert new user..
# Aug 20th 2019, 19:52 ricksaccous you're literally just saving a string to db
# Aug 20th 2019, 19:52 ricksaccous in migrations you don't have cake magic doing the saving
# Aug 20th 2019, 19:52 ricksaccous also you don't want a datetime object, what you want is a string that the database expects
# Aug 20th 2019, 19:51 ricksaccous @maymeow do you mean seed rather than migration?
# Aug 20th 2019, 19:45 pedrorocha Thank you guys!
# Aug 20th 2019, 19:35 maymeow @Dan yes its returning UTC date time i think... i have set app.ini to europe/bratislava and datasource timezone is same
# Aug 20th 2019, 19:34 admad If you find the need to use them in a custom event listener the it should probably be just a service class instead
# Aug 20th 2019, 19:34 daniel.upshaw @maymeow Did you try debugging your variables?
# Aug 20th 2019, 19:33 admad @pedrorocha components themselves are event listeners
# Aug 20th 2019, 19:33 maymeow System timezone is `CEST` database s mysql and timezone is set to `SYSTEM`. In php ini i have `Europe/Bratislava` but it didnt work with UTC or CEST either
# Aug 20th 2019, 19:32 maymeow i have problem with configuration... i creating default admin user in migration.. and creating date with `'created' => FrozenTime::now()` but getting `wrong date format` on migration.. where is problem? Other thing s on app works good
# Aug 20th 2019, 19:31 daniel.upshaw Maybe would probably say that's a bad idea
# Aug 20th 2019, 19:31 daniel.upshaw @pedrorocha, my understanding is that Components are for Controllers... but can you make a `use App\Controller\Component\YourComponent` to hack it in there?
# Aug 20th 2019, 19:30 maymeow Thank you
# Aug 20th 2019, 19:30 daniel.upshaw Using the routes like `/messages/inbox`, `/messages/sent`, `/messages/deleted` makes the most sense to me
# Aug 20th 2019, 19:29 daniel.upshaw But technically you can do it either way
# Aug 20th 2019, 19:28 daniel.upshaw For a search filter you might use the query strings like `?s=keywords`
# Aug 20th 2019, 19:28 daniel.upshaw @maymeow For that case it might make sense to do different routes
# Aug 20th 2019, 18:44 pedrorocha Hello guys, how do I load a component inside a Listener? I'm implementing an EventListenerInterface and would like to use a custom components I built inside that..
# Aug 20th 2019, 18:28 maymeow When you need filter list of items do you use `/controller/index` /controller/another-view` or `/controller/index`, `/controller/index?filter=another-view` For example i need to create page for send / recieved messages
# Aug 20th 2019, 17:36 daniel.upshaw It should have the same action if it's within the same Controller class
# Aug 20th 2019, 17:35 daniel.upshaw It refers to ``` private function doThatAction() { }```
# Aug 20th 2019, 17:35 ckjksl awesome, i'll give that a shot then. Thanks!
# Aug 20th 2019, 17:35 daniel.upshaw Yep it does @ckjksl