TOPIC: Can't edit time/date in latest K2 and Joomla 3.7

Can't edit time/date in latest K2 and Joomla 3.7 6 months 3 weeks ago #161674

Hi

After updating to Joomla 3.7 I can't edit the time/date in Creation Date, Start Publishing and Finish Publishing.
They reset to what they were before the update.

Any ideas to resolve this?

Can't edit time/date in latest K2 and Joomla 3.7 6 months 3 weeks ago #161675

Seems that it's not a K2 issue :-)

github.com/joomla/joomla-cms/issues/15569
  • Krikor
  • Krikor's Avatar
  • OFFLINE
  • Moderator
  • Posts: 14760

Can't edit time/date in latest K2 and Joomla 3.7 6 months 3 weeks ago #161678

Yeap, the thread also includes a PR which you can try.
IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

Can't edit time/date in latest K2 and Joomla 3.7 6 months 3 weeks ago #161682

Already did and it works - just to let you know :-)
  • Krikor
  • Krikor's Avatar
  • OFFLINE
  • Moderator
  • Posts: 14760

Can't edit time/date in latest K2 and Joomla 3.7 6 months 3 weeks ago #161686

Thank you Thomas :)
IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/
  • Panos
  • Panos's Avatar
  • OFFLINE
  • New Member
  • Posts: 5

Can't edit time/date in latest K2 and Joomla 3.7 6 months 5 days ago #162002

Hello,

After upgrading our Joomla site from 3.7.0 to 3.7.1 we have an issue only with K2, where if we go at the Publishing tab and change the date, the calendar doesn't show time and if we change time by hand and click another tab, when we go back at Publishing tab it shows the current time instead of the time we typed manually, or even when we press the Save button it reverts back

We searched the html.php file located at: /libraries/cms/html/ to see if the code is wrong, but the code is the one Fotis recommends:
$showTime     = ($showTime) ? "1" : "0";
$todayBtn     = ($todayBtn) ? "1" : "0";
$weekNumbers  = ($weekNumbers) ? "1" : "0";
$fillTable    = ($fillTable) ? "1" : "0";
$singleHeader = ($singleHeader) ? "1" : "0";

In Joomla Content component the calendar works OK, it shows the date and time and it works as expected when we press the Save button, without reverting the time back to the current one.

Here's the screenshots:

K2:


Joomla Content Component:


So, any help?
Last Edit: 6 months 5 days ago by Panos.
  • Krikor
  • Krikor's Avatar
  • OFFLINE
  • Moderator
  • Posts: 14760

Can't edit time/date in latest K2 and Joomla 3.7 6 months 5 days ago #162005

Can you try installing the DEV version github.com/getk2/k2 ?
IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/
  • Panos
  • Panos's Avatar
  • OFFLINE
  • New Member
  • Posts: 5

Can't edit time/date in latest K2 and Joomla 3.7 6 months 5 days ago #162013

Development version seems to solve the date/time reset problem. Only one question, in Firefox the calendar text boxes for the time are a bit small.

Firefox:


In Chrome however everything is OK.

Chrome:
  • Panos
  • Panos's Avatar
  • OFFLINE
  • New Member
  • Posts: 5

Can't edit time/date in latest K2 and Joomla 3.7 6 months 3 days ago #162046

I think I found the problem. It was Cloudflare that kept an old copy of the .js file, that's why the calendar would reset each time we clicked another element.
The weird thing is it didn't do it when we updated to 3.7.0. Oh well, lesson learned; after an update, if something is wrong, clean Cloudflare cache as well!

Thanks for all the help!
  • Krikor
  • Krikor's Avatar
  • OFFLINE
  • Moderator
  • Posts: 14760

Can't edit time/date in latest K2 and Joomla 3.7 6 months 1 day ago #162052

Clear all caches :)
Nice to hear that the issue has been resolved Pano :)
IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/
Moderators: william white

Who Is Online

Total users online: 9 Members and 5774 Guests Online
Alex Walker Frode John Keith Mountifield Marian Wężycki Robert j Wall Tim Paulson damir william white
Legend ::   Site Administrator Global Moderator Moderator Banned User Guest
  • Total Messages: 138565 | Total Subjects: 36484
  • Total Sections: 6 | Total Categories: 32
  • Today Open: 2 | Yesterday Open: 2
  • Today Total Answer: 3 | Yesterday Total Answer: 26
Powered by Kunena Forum