Welcome Guest, Not a member yet? Register   Sign In
Reformat date from CURRENT_TIMESTAMP
#13

(02-26-2020, 04:08 AM)MikiStoni Wrote: Hi zahhar

doesn't work for me.

Code:
{changetable} {/changetable}
{timestamp|date(d.m.Y H:i:s)}     {message}

funny thing Smile

MikiStoni, this is how you could proceed:
1) ensure you have changes in system/View/Parser.php class as proposed here: https://github.com/codeigniter4/CodeIgni...2603/files
2) take my example and ensure it works for you. You should start wikth smth really simple.

Regarding your code: it most probably would not work. In order to work, you should populate {changetable} variable with array of arrays.
You can try the following: try to supply static data into changetable variable in your $data array first, like this:

PHP Code:
'changetable' => [
                   ['message' => 'My message''timestamp' => '2020-02-26 00:00:00']
               

Then show what you get.
Reply


Messages In This Thread
RE: Reformat date from CURRENT_TIMESTAMP - by zahhar - 02-26-2020, 08:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB