Keyword

Date created in json view always in UTC?

More
5 months 2 days ago #167944 by MiX
MiX created the topic: Date created in json view always in UTC?
Has anyone encountered such a situation:
  • In the database, the dates of making objects (k2 items) are in UTC - let's just say it's correct.
  • Offset for local time is included in the html view and feed - articles have the correct date / time.
  • Offset for local time is not included in the json view - the dates of the articles are as they were saved in the database.

I observed this in the following configuration:
Debian 9 (local time correct, universal time correct, RTC time - same as UTC), Apache 2, PHP 7.0.xx (the date.timezone variable is set in php.ini), MariaDB 10.x.xx, Joomla (latest) offset timezone selected, K2 (latest).

Can you change the json view to include the local time offset correctly?

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #167982 by Krikor Boghossian
Krikor Boghossian replied the topic: Date created in json view always in UTC?
Hello,
Is the issue present in the item or the itemlist (category, tag etc) views?

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #167991 by MiX
MiX replied the topic: Date created in json view always in UTC?
Hello, thanks for the answer

I have seen this in the category view (view=itemlist&layout=category&task=category&id=...), tag view (view=itemlist&layout=tag&tag=...&task=tag), user's blog view (view=itemlist&layout=user&id=...&task=user) and in the article view (view=item&layout=item&id=...)

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #168004 by Krikor Boghossian
Krikor Boghossian replied the topic: Date created in json view always in UTC?
Thank you for your feedback,
I have marked it as an issue in Github github.com/getk2/k2/issues/450 so we can track its progress.

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

Please Log in or Create an account to join the conversation.

Moderators: william white