Elxis CMS Forum
Support => Elxis 4.x/5.x DEV => Topic started by: seadhna on July 30, 2019, 12:59:35
-
Hi, I remember downloading a patch to fix the issue with changing the article date but I can't find it now in 'Download' or 'Blog' or this forum - I am unable to change the date of an article in Elxis 5.0 - is this still an issue - is the patch still available?
-
You can change the date time of an article under 5.0 version. Don't you?
(https://i.imgur.com/WCFyGzW.jpg)
-
I can not change the date as well..Elxis 5, Uranus
-
It's weird. @seadhna, have you found a solution about?
-
He is right. The date can not be changed. I tried it on a localhost installation Elxis 5.0 rev 2299
-
@seadhna please send a personal message for this in 2 days to check it.
-
The date doesnt change because it has not the proper length (16 characters instead of 19) and it is considered invalid.
Make this fix please:
Open file components/com_content/controllers/aarticle.php
go to line 1077:
$newcreated = trim(filter_input(INPUT_POST, 'newcreated', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH));
Add below:
if (strlen($newcreated) == 16) { $newcreated .= ':00'; }
Save the file and you are ready.
Sorry for the trouble!
-
I did it and now the date of any article can be changed.
-
I fixed it too, :)
-
Sorry for the delay in responding datahell and webgift!
Thanks very much for this fix - it also worked for me.