# |
Apr 25th 2018, 20:41 |
dereuromark |
also refs https://github.com/cakephp/cakephp/issues/10439 |
# |
Apr 25th 2018, 20:38 |
admad |
https://github.com/cakephp/cakephp/blob/master/src/Database/Type/DateTimeType.php#L71 |
# |
Apr 25th 2018, 20:35 |
madrid988 |
my database type is 'timestamp without time zone' |
# |
Apr 25th 2018, 20:34 |
madrid988 |
my json content sends the datetimes as string like '2018-01-01T00:00:00' and am looking for the best way to have this conversion done through my app for all datestimes |
# |
Apr 25th 2018, 20:33 |
madrid988 |
I am attempting to save a date/time with no timezone. |
# |
Apr 25th 2018, 20:33 |
madrid988 |
what if I am saving my timestamps which do have the time part? |
# |
Apr 25th 2018, 20:32 |
admad |
you'll have to use a custom date db type class to strip out the timezone when marshalling |
# |
Apr 25th 2018, 20:32 |
admad |
calendar dates don't have timezone |
# |
Apr 25th 2018, 20:30 |
madrid988 |
When I try 'date_of_birth'=>'2018-01-01' it works but 'date_of_birth'=>'2018-01-01T00:00:00' does not work as it give a 'the provided value is invalid' error when I try to save. Any ideas on how to have Cake work for saving timestamps as '2018-01-01T00:00:00' or some kind of format which includes the time part? |
# |
Apr 25th 2018, 19:31 |
madrid988 |
i will do that |
# |
Apr 25th 2018, 19:27 |
dereuromark |
foreach ().. $row['created'] = new Time($row['created']); |
# |
Apr 25th 2018, 19:26 |
dereuromark |
I had a similar issue and had to convert manually |
# |
Apr 25th 2018, 19:20 |
madrid988 |
I'm guessing if I passed in my datetime as different inputs like mydate[month] mydate[day] etc... it would work, but is there a way to just send a date string instead? |
# |
Apr 25th 2018, 19:19 |
madrid988 |
I have a json request with a datetime as a payload value. How do I get my Cake controller to convert the date string received in the request to a model field frozen date or a format which will save to the database without giving an 'invalid value' error? The field in my postgre db is a timestamp without timezone. |
# |
Apr 25th 2018, 19:04 |
itmpls |
huh? |
# |
Apr 25th 2018, 18:52 |
dwms |
@itmpls no contain? |
# |
Apr 25th 2018, 18:34 |
itmpls |
ha i actually have the same request |
# |
Apr 25th 2018, 18:33 |
dwms |
Hi, how to implement refreshtoken with admad/cakephp-jwt-auth |
# |
Apr 25th 2018, 18:14 |
itmpls |
tried to google it |
# |
Apr 25th 2018, 18:14 |
itmpls |
is getTableLocator() the replacement for get() now in TableRegistry? |
# |
Apr 25th 2018, 17:11 |
dereuromark |
See https://github.com/FriendsOfCake/awesome-cakephp#demo => https://sandbox.dereuromark.de/sandbox/ajax-examples |
# |
Apr 25th 2018, 17:08 |
dereuromark |
check my sandbox, there are lots of examples. |
# |
Apr 25th 2018, 16:59 |
johnnyboy |
hey anyone know-how uses ajax in cakephp3.x to request a controller method... |
# |
Apr 25th 2018, 16:44 |
vinicius.big |
That is it!! Thanks!!! |
# |
Apr 25th 2018, 16:39 |
admad |
@vinicius.big request->getParam('paging') |
# |
Apr 25th 2018, 16:22 |
slackebot2 |
can I get the paginator current status inside the Controller to pass to the View? |
# |
Apr 25th 2018, 16:22 |
vinicius.big |
Hello, bakers! I'm using JSON views to get the list of entities. Everything is working fine. But I need to add more data in the `_serialize` key. I need to send Pagination information such as Page Number, Page Size, and Current Page. ``` public function index() { $articles = $this->paginate($this->Articles); $this->set(compact('articles')); $this->set('_serialize', 'articles'); } ``` But I couldn't figured this out. How |
# |
Apr 25th 2018, 16:10 |
steinkel |
saltlake check https://github.com/CakeDC/users/blob/master/Docs/Documentation/Migration/6.x-7.0.md |
# |
Apr 25th 2018, 16:06 |
saltlake |
Can anyone answer? |
# |
Apr 25th 2018, 16:06 |
nosmallint |
type="number" |
# |
Apr 25th 2018, 16:05 |
nosmallint |
@lorenzo: nope. No regression. If I setup a test project with 2.10.0 and a single testtable with various data types including smallintegers I get correctly "<input name="data[Testtable][col_smallint1]" id="TesttableColSmallint1" type="number">" |
# |
Apr 25th 2018, 15:45 |
saltlake |
beforeFilder() https://bpaste.net/show/411f960eab98 |
# |
Apr 25th 2018, 15:44 |
saltlake |
for users/loginform |
# |
Apr 25th 2018, 15:43 |
saltlake |
why this error? https://bpaste.net/show/64ca2a6dcf98 |
# |
Apr 25th 2018, 15:38 |
nosmallint |
switched back to 2.9.9 for debugging this, had the issue in 2.10.0 and latest 2.10.x |
# |
Apr 25th 2018, 15:38 |
lorenzo |
I believe so |
# |
Apr 25th 2018, 15:37 |
nosmallint |
@lorenzo: so this is actually a regression and the fault's not on my side? |
# |
Apr 25th 2018, 15:37 |
nosmallint |
@ itmpls: data type in PostgreSQL is "smallint" :) |
# |
Apr 25th 2018, 15:37 |
saltlake |
in 3.6 |
# |
Apr 25th 2018, 15:36 |
saltlake |
Is Session a helper or component? |
# |
Apr 25th 2018, 15:36 |
nosmallint |
uuh |