Forums

Created Time for 'Joomla article' is wrong

fribse 15 Jan, 2017
When I create an article through the 'Joomla article' action, the time is off by one hour (one hour in the future).
It is probably because of DST, or something like that.
If I create an article through Joomla's own system, the time is correct.
Also, the action doesn't respect the ACL of Joomla, which in my case is good, but still it's odd.
GreyHead 02 Feb, 2017
Hi fribse,

ChronoForms sets the data using this code at line 39 of /administrator/components/com_chronoforms5/chronoforms/actions/joomla_article/joomla_article.php
		$article_data['created'] = date("Y-m-d H:i:s");

You could edit this, or probably better, use a Custom Code action after the Joomla! Article action to update the record to the time you want to use; you could update the ACL there too.

Bob
fribse 02 Feb, 2017
Hi GreyHead

I can certainly circumvent the problem, but I don't understand why it doesn't timestamp it with Joomla's own timestamp function?
Otherwise this will be a problem in all timezones.
I don't have any problems when I create an article from either frontend or backend in Joomla.
It does post the article, but it just seems funny to see that it says it is created ahead of time.

Best regards
Kenneth
This topic is locked and no more replies can be posted.