Keyword

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

  • Thomas Thrane
  • Thomas Thrane's Avatar Topic Author
  • Offline
  • Premium Member
More
7 years 6 months ago #161674 by Thomas Thrane
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?

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

  • Thomas Thrane
  • Thomas Thrane's Avatar Topic Author
  • Offline
  • Premium Member
More
7 years 6 months ago #161675 by Thomas Thrane
Replied by Thomas Thrane on topic Can't edit time/date in latest K2 and Joomla 3.7
Seems that it's not a K2 issue :-)

github.com/joomla/joomla-cms/issues/15569

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 6 months ago #161678 by Krikor Boghossian
Replied by Krikor Boghossian on topic Can't edit time/date in latest K2 and Joomla 3.7
Yeap, the thread also includes a PR which you can try.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Thomas Thrane
  • Thomas Thrane's Avatar Topic Author
  • Offline
  • Premium Member
More
7 years 6 months ago #161682 by Thomas Thrane
Replied by Thomas Thrane on topic Can't edit time/date in latest K2 and Joomla 3.7
Already did and it works - just to let you know :-)

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 6 months ago #161686 by Krikor Boghossian
Replied by Krikor Boghossian on topic Can't edit time/date in latest K2 and Joomla 3.7
Thank you Thomas :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
7 years 6 months ago - 7 years 6 months ago #162002 by Panos
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: 7 years 6 months ago by Panos.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 6 months ago #162005 by Krikor Boghossian
Replied by Krikor Boghossian on topic Can't edit time/date in latest K2 and Joomla 3.7
Can you try installing the DEV version github.com/getk2/k2 ?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
7 years 6 months ago #162013 by Panos
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:

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

More
7 years 6 months ago #162046 by Panos
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!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 6 months ago #162052 by Krikor Boghossian
Replied by Krikor Boghossian on topic Can't edit time/date in latest K2 and Joomla 3.7
Clear all caches :)
Nice to hear that the issue has been resolved Pano :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum