Log message #4049359

# At Username Text
# Jul 7th 2017, 15:31 gutts hah, 'controller' => 'all' the => was a =. nm. TGIF
# Jul 7th 2017, 15:28 gutts and I'm for sure not passing another parameter besides that
# Jul 7th 2017, 15:28 dereuromark Yeah. Once I hack this line in, it is 5:03 here as expected..
# Jul 7th 2017, 15:26 dereuromark someone I feel there is the same output formatting missing as in the helper: $value = $value->timezone('Europe/Berlin'); etc
# Jul 7th 2017, 15:26 gutts why does $this->redirect(['action' => 'edit', 'controller' => 'all', 'prefix' => 'admin', 'plugin' => 'pages'], 4, 5); redirect me to /admin/pages/all/edit/1/4/5 ? where does the 1 come from?
# Jul 7th 2017, 15:24 dereuromark to be 05:03 then for output?
# Jul 7th 2017, 15:24 dereuromark the value coming from the DB is already 'time' => '2017-02-02T03:03:00+00:00', 'timezone' => 'UTC', shouldnt this have the local timezone set?
# Jul 7th 2017, 15:19 dereuromark sure
# Jul 7th 2017, 15:19 hmic Type::build('time/date*')->useLocaleParser()->useImmutable()->setLocaleFormat() basically. 4 times: time, date, datetime, timestamp
# Jul 7th 2017, 15:18 dereuromark and ini_set('intl.default_locale', 'de_DE');
# Jul 7th 2017, 15:17 dereuromark so whats your bootstrap setup besides date_default_timezone_set('UTC'); ?
# Jul 7th 2017, 15:17 hmic dereuromark: yes. server is UTC, app is another timezone... for me, when $entity->dateTimeField showed correct local time, formhelper did too.
# Jul 7th 2017, 15:15 dereuromark i am talking about the use case of having utc as server setup (recommended)
# Jul 7th 2017, 15:15 glanceded @hmic thank you, with that page opened I was working on
# Jul 7th 2017, 15:15 dereuromark @hmic not really, for the time helper you got a outputTimezone to format properly, but that is missing onthe widget level :S
# Jul 7th 2017, 15:15 hmic you need to, basically.
# Jul 7th 2017, 15:15 Martin` but wished you was able to forward a config to a datatype
# Jul 7th 2017, 15:14 Martin` I used custom datatypes for my upload plugin :)
# Jul 7th 2017, 15:14 hmic glanceded: https://book.cakephp.org/3.0/en/orm/database-basics.html#data-types and the following paragraphs is the information you need. searching for "schema" on the book brings you to a wrong place...
# Jul 7th 2017, 15:14 jdominguezpaz @ebugg @admad I think I got it (also I think I now understand what admad said). I wrote irregular rules "both ways" so, for FrecuenciaSemanal I have: 'frecuenciasemanal'=>'FrecuenciasSemanales', 'FrecuenciaSemanal'=>'frecuenciassemanales', and looks good. Thank you both :slightly_smiling_face:
# Jul 7th 2017, 15:12 Martin` I liked the type of IP :P
# Jul 7th 2017, 15:12 Martin` ok :P
# Jul 7th 2017, 15:12 Martin` :P
# Jul 7th 2017, 15:11 hmic dereuromark: thats quite odd
# Jul 7th 2017, 15:10 hmic Martin`, i just made that name up, can be anything you like. seemed kind of fitting for the thing in question
# Jul 7th 2017, 15:09 dereuromark jep
# Jul 7th 2017, 15:09 Martin` IPType?
# Jul 7th 2017, 15:09 hmic or are you talking about echo $entity->dateTimeField is correct but $this->Form->input('dateTimeField') is wrong?
# Jul 7th 2017, 15:09 dereuromark I did
# Jul 7th 2017, 15:08 hmic dereuromark: set your locale timezone in bootstrap!
# Jul 7th 2017, 15:07 hmic maybe/probably you can just do: $table->getSchema()->columnType('your_ip_field', '\App\Model\Types\IPType'); in one line in 3.4
# Jul 7th 2017, 15:07 dereuromark did anyone write localized form input widgets for datetime? currently they are two hours (gmt 0 vs 2) off for me...
# Jul 7th 2017, 15:05 hmic these 2 things go in your table::initialize() function, btw.
# Jul 7th 2017, 15:05 glanceded ok, i'll try :)
# Jul 7th 2017, 15:04 hmic you need to map the IPType before too: Type::map('IPType', '\App\Model\...\IPType'); and have it defined in that dir/namespace with the corresponding class name
# Jul 7th 2017, 15:03 jdominguezpaz it*
# Jul 7th 2017, 15:03 jdominguezpaz @jarard01 If the .ctp is not created in that route it will show the one in the framework. You have to create the missing_controller.ctp in that route to override ir.
# Jul 7th 2017, 15:03 hmic $table->schema()->columnType('yourIPfield', 'IPType');
# Jul 7th 2017, 15:03 glanceded ah, sure, didn't think about that, thank you very much
# Jul 7th 2017, 15:02 hmic glanceded: becaue you tell it in the schema
# Jul 7th 2017, 15:02 hmic gutts: hans michl