Wrong time information (time zones?) in the...

Search
Other Bug Reports questions
Forum

Wrong time information (time zones?) in the output: -2h

Hitsch's Avatar Hitsch
Hi Peter, we recently had the problem that ArticlesAnywhere always displayed the complete format in the time specification and did not take format="..." into account.
Now all times on our website are wrong by 2 hours: instead of 8pm, 6pm appears.... so always.
Can you help?
auditivvokal.de/de/agenda/kalender/2021
Thank you very much!

Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
I cannot reproduce the issue with any of my sites, and changing time zones.

Your website has a lot of non-standard things installed, making it pretty hard to see what is going on.

Can you reproduce the issue on a clean Joomla installation?
Then you can also see the output of the calendar field through Joomla core.
Please post a rating at the Joomla! Extensions Directory
Hitsch's Avatar Hitsch
We have the same error with 3 other Pages, oll with your Update ArticlesAnywhere-v10.7.3-dev2103738-PRO. And with the downgrade to the actual version we have the correct time but without respect the defined time format.
Peter van Westen's Avatar Peter van Westen ADMIN
There was a fix to make sure the custom fields use the field layouts by default.
So it might be due to a bug in the Joomla core layout for the calendar field.

Again:
Can you reproduce the issue on a clean Joomla installation?
Then you can also see the output of the calendar field through Joomla core.
Please post a rating at the Joomla! Extensions Directory
Hitsch's Avatar Hitsch
Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Like I said, I cannot reproduce the issue on any of my settings with any timezone setting.

So for the third time:
Can you reproduce the issue on a clean Joomla installation?
Then you can also see the output of the calendar field through Joomla core.

If you can reproduce it on a clean setup, I am happy to look into this further. Otherwise I can't help you.
Please post a rating at the Joomla! Extensions Directory
Hitsch's Avatar Hitsch
Hi Peter, Viktor found and fixed the bug:

With the custom field, a certain attribute is set too late in ArticlesAnywhere and the data is converted with a double offset.

File:
plugins/system/articlesanywhere/src/Output/Data/CustomFields.php

\RegularLabs\Plugin\System\ArticlesAnywhere\Output\Data\CustomFields::get
ad bevore $this->getField:
// Kubik-Rubik-Lösung
$attributes->is_custom_field = true;

Best Regards
Ch
Hitsch's Avatar Hitsch
Hi Peter, after the update to the 11.0.0 the time in the data field is not correct, it seems to be the same bug we solved.

SOLUTION:

File:
plugins/system/articlesanywhere/src/Output/Data/CustomFields.php

\RegularLabs\Plugin\System\ArticlesAnywhere\Output\Data\CustomFields::get
ad bevore $this->getField:
$attributes->is_custom_field = true;
Peter van Westen's Avatar Peter van Westen ADMIN
That might solve the issue on your specific setup, but I will need to see how things work normally.

Like I said, I cannot reproduce the issue on any other setups. So I think it is down to a weird combination of things you have installed.

So again: If you can reproduce it on a clean setup, I am happy to look into this further. If not, I recommend you keep the custom fix and don't update Articles Anywhere on your setup.
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in