Log message #3882901

# At Username Text
# May 30th 2016, 08:31 hmic https://github.com/cakephp/cakephp/pull/8753
# May 30th 2016, 08:31 JohnWayne Ok, thx
# May 30th 2016, 08:31 JohnWayne @mohand 3.2
# May 30th 2016, 08:31 mohand just search for UTC in bootstrap.php
# May 30th 2016, 08:31 mohand @johnwayne which version of cakephp ? because in cake 3, you have an option in bootstrap
# May 30th 2016, 08:30 hmic functionality like that will be available in a upcoming release very likely, yes.
# May 30th 2016, 08:30 mohand to be sure, try an echo and die in the model to see if it passes there when you bake
# May 30th 2016, 08:29 mohand maybe not with bake
# May 30th 2016, 08:29 JohnWayne can you send me link from that PR.... and is this solution good $user->created->nice('Europe/Paris')
# May 30th 2016, 08:29 alanderouen mohand : ok, it worked, but datasource for model should be detected. I guess i'm doing something wrong.
# May 30th 2016, 08:28 hmic there is a PR open from ionas that handles the output case quite well
# May 30th 2016, 08:28 JohnWayne And what is your suggestion with conversation. I am now using nice()... Idknw is this good solution
# May 30th 2016, 08:28 hmic you should only (need to) convert the timezone on output or from user input.
# May 30th 2016, 08:27 hmic this is utc by default, which is a good default.
# May 30th 2016, 08:27 hmic JohnWayne, nope. not yet at least. it is good practice to work in a single timezone throught the whole app!
# May 30th 2016, 08:26 mohand public function __construct (){
# May 30th 2016, 08:26 alanderouen mohand : haa. I see. Ok. It should work
# May 30th 2016, 08:26 mohand <?php class DATABASE_CONFIG { public $default = null;
# May 30th 2016, 08:25 JohnWayne One question regarding date/time from DB. Is there "global" settings to save/update in DB date/time in UTC-0 and only read in UTC+2
# May 30th 2016, 08:25 mohand in database.php
# May 30th 2016, 08:25 alanderouen mohand : i don't find any doc about that. do you mean in model ?
# May 30th 2016, 08:23 alanderouen mohand : ok. Noted. Didn't know that.
# May 30th 2016, 08:22 mohand if you are on Cake 2, you can also define a public var $this->default and in __construct() change $this->default dynamically if you are in cli
# May 30th 2016, 08:21 alanderouen mohand : mmm... ok, let's try this
# May 30th 2016, 08:21 mohand @alanderouen try to change the default datasource just to bake your fixtures
# May 30th 2016, 08:20 mohand check in your Session Auth.redirect
# May 30th 2016, 08:20 alanderouen mohand : doesn't change anything. I think it has something to do with datasource
# May 30th 2016, 08:20 Eax spriz: Cool, thanks :) I'll try that out
# May 30th 2016, 08:20 ionas what do I need to do? rebase on 3.next?
# May 30th 2016, 08:20 ionas eh 3.next
# May 30th 2016, 08:20 ionas I started off master and then had to retarget to 3.x
# May 30th 2016, 08:20 ionas meh I screwed up git flow https://github.com/cakephp/cakephp/pull/8903/commits â?¦
# May 30th 2016, 08:19 spriz Nope, the redirectUrl is the one you want people to be redirected to
# May 30th 2016, 08:19 Eax spriz: So if it's no longer the one set in AppController Auth Config, it'll read the "new" one? (Eg where the user left)
# May 30th 2016, 08:18 spriz @eax it will read whatever is in the componentâ??s config :P
# May 30th 2016, 08:17 alanderouen mohand trying right now
# May 30th 2016, 08:17 alanderouen it doesn't find my table which is in another datasource than default
# May 30th 2016, 08:17 Eax spriz: That'll read the one from AppController though, right? I need the current one :)
# May 30th 2016, 08:17 mohand did yu try with -p yourpluginName
# May 30th 2016, 08:17 spriz Eax: $this->Auth->config(â??redirectUrlâ??)? :P
# May 30th 2016, 08:16 alanderouen tried Console/cake bake ***fixture*** ModelName --plugin PluginName but i get an error