# |
May 31st 2016, 08:54 |
birdy247 |
what version of cake you running |
# |
May 31st 2016, 08:53 |
Neon1024 |
For my implmentation, I just dropped it in and everything worked |
# |
May 31st 2016, 08:53 |
Neon1024 |
So calls to ->format() are failing because the return isnâ??t the right class |
# |
May 31st 2016, 08:53 |
Neon1024 |
My first thought is that instead of returning a DateTime object (i18n\Time, Chronos, Carbon) itâ??s returning the actual data type class |
# |
May 31st 2016, 08:51 |
birdy247 |
Call to undefined method App\Database\Type\TimezoneAwareDateTimeType::format() |
# |
May 31st 2016, 08:51 |
birdy247 |
but it throws a fatal error |
# |
May 31st 2016, 08:51 |
Neon1024 |
The timezone will be applied when the data is marshalled |
# |
May 31st 2016, 08:51 |
birdy247 |
I have assigned it |
# |
May 31st 2016, 08:51 |
Neon1024 |
Type::map() is the call to assign it iirc |
# |
May 31st 2016, 08:50 |
Neon1024 |
birdy247, Itâ??s a data type class, not a formatting class |
# |
May 31st 2016, 08:49 |
JohnWayne |
Aloha :) |
# |
May 31st 2016, 08:49 |
birdy247 |
there is no method ->format() |
# |
May 31st 2016, 08:49 |
birdy247 |
this is prob why the var_dump(get_class_methods($class)) was in there :slightly_smiling_face: |
# |
May 31st 2016, 08:43 |
birdy247 |
Call to undefined method App\Database\Type\TimezoneAwareDateTimeType::format() |
# |
May 31st 2016, 08:38 |
birdy247 |
I added it |
# |
May 31st 2016, 08:37 |
birdy247 |
Neon1024 just trying to impement it now |
# |
May 31st 2016, 08:34 |
Neon1024 |
birdy247, Thank José I just modified it ;) |
# |
May 31st 2016, 08:32 |
aavrug |
hmic: thanks :slightly_smiling_face: |
# |
May 31st 2016, 08:32 |
hmic |
aavrug, fair enough. thank you! |
# |
May 31st 2016, 08:32 |
justrohu |
Hello all |
# |
May 31st 2016, 08:31 |
aavrug |
hmic: I din't propmoted it I just provided it here because of the opinions and what I am getting :slightly_smiling_face: |
# |
May 31st 2016, 08:30 |
hmic |
yes. but still, please dont try to promote this! |
# |
May 31st 2016, 08:29 |
birdy247 |
https://gist.github.com/davidyell/6fd69027178baa67bd1f |
# |
May 31st 2016, 08:29 |
birdy247 |
this script is great |
# |
May 31st 2016, 08:29 |
aavrug |
hmic: ok but there are lot of things may be we can use that in development. |
# |
May 31st 2016, 08:28 |
birdy247 |
I am always left confused as to how to ensure they are input with the correct timezone |
# |
May 31st 2016, 08:27 |
Wouterdt |
Hello, I'm using CakePHP 2 and am wondering if there is a possibility for a polymorphic habtm relation, if so, how would I name the tables/columns? |
# |
May 31st 2016, 08:27 |
hmic |
and its not my personal opinion - despite not to use docker in production at all. what i said is about best practices which you should encourage |
# |
May 31st 2016, 08:27 |
aavrug |
hmic: no |
# |
May 31st 2016, 08:27 |
birdy247 |
it looks like any dates are being converted to frozenTime |
# |
May 31st 2016, 08:26 |
aavrug |
micalm: This really looks good :slightly_smiling_face: |
# |
May 31st 2016, 08:26 |
hmic |
the other way would be acceptable: you build it only for you |
# |
May 31st 2016, 08:24 |
aavrug |
hmic: you don't like that is okay but don't worry i didn't build that only for you :P |
# |
May 31st 2016, 08:22 |
birdy247 |
upgraded a 3.1.x to a 3.2.x project |
# |
May 31st 2016, 08:22 |
birdy247 |
dates are confusing em again :slightly_smiling_face: |
# |
May 31st 2016, 08:21 |
birdy247 |
oh my word |
# |
May 31st 2016, 08:06 |
hmic |
there is really nothing to what you do there. i do not want to discourage you really, but you should not try to promote this - personal usecase, fine. recommend to anybody else - nonono! |
# |
May 31st 2016, 08:05 |
micalm |
aavrug: take a look at sovereign/sovereign, the jessie branch, might give you some good ideas for setting this thing up. |
# |
May 31st 2016, 08:05 |
hmic |
or add the ppa to 14.04 at least |
# |
May 31st 2016, 08:05 |
micalm |
That's another thing. But I'm nginx 4 lyfe so :P |
# |
May 31st 2016, 08:05 |
hmic |
you are using an old distro with an outdated php5 version, why not at least use something current, 16.04 with php7? |