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
8 years 3 weeks 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
8 years 3 weeks 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
8 years 3 weeks 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.

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

  • Thomas Thrane
  • Thomas Thrane's Avatar Topic Author
  • Offline
  • Premium Member
More
8 years 3 weeks 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
8 years 3 weeks 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 :)

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

More
8 years 6 days ago - 8 years 6 days 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: 8 years 6 days ago by Panos.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 5 days 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 ?

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

More
8 years 5 days 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
8 years 3 days 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
8 years 2 days 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 :)

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

  • Thomas Thrane
  • Thomas Thrane's Avatar Topic Author
  • Offline
  • Premium Member
More
8 years 2 days ago #162054 by Thomas Thrane
Replied by Thomas Thrane on topic Can't edit time/date in latest K2 and Joomla 3.7
But there's still the CSS issue with the DEV edition :-)

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 1 day ago #162061 by Krikor Boghossian
Replied by Krikor Boghossian on topic Can't edit time/date in latest K2 and Joomla 3.7
Can you post a screenshot, so that we are on the same page?

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

  • Thomas Thrane
  • Thomas Thrane's Avatar Topic Author
  • Offline
  • Premium Member
More
8 years 1 day ago #162067 by Thomas Thrane
Replied by Thomas Thrane on topic Can't edit time/date in latest K2 and Joomla 3.7
Sure!
From the 2.8.0 DEV:

imgur.com/a/MSVhO

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 20 hours ago #162094 by Krikor Boghossian

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

  • Thomas Thrane
  • Thomas Thrane's Avatar Topic Author
  • Offline
  • Premium Member
More
8 years 5 hours ago #162106 by Thomas Thrane
Replied by Thomas Thrane on topic Can't edit time/date in latest K2 and Joomla 3.7
Looks a lot better, thanks!

How can I change the time picker to 24 hour clock?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 4 hours ago #162107 by Krikor Boghossian
Replied by Krikor Boghossian on topic Can't edit time/date in latest K2 and Joomla 3.7
You would have to edit some core files in order to change the initialisation script ( chmln.github.io/flatpickr/examples/#time-picker )

I would suggest the following, posting this as a feature request on github so we implement it on the core.

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

More
7 years 8 months ago #163986 by Elisabetta
Replied by Elisabetta on topic Can't edit time/date in latest K2 and Joomla 3.7
Hi and sorry if I go back to this topic
Since yesterday, I'm using Joomla! 3.7.5 Stable (ita) and k2 2.8.0.
After updating, I can not change the date of the articles: they can not be edited.
I checked, with some difficulty because I'm not really expert, the various suggested changes and I think they're all already active.
Can you help me solve this bug?
What useful information can I provide?
Thanks in advance

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 8 months ago #163995 by Krikor Boghossian
Replied by Krikor Boghossian on topic Can't edit time/date in latest K2 and Joomla 3.7
Can you send me a screenshot of the issue?

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

More
7 years 8 months ago #163998 by Elisabetta
Replied by Elisabetta on topic Can't edit time/date in latest K2 and Joomla 3.7
Thanks for replying.
As you can see from the screenshot, the date is not editable

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

More
7 years 8 months ago #164000 by Panos
Have you cleared all caches after the upgrade? I mean Joomla cache, your browser's cache, server cache if there is any and Cloudflare cache if you use Cloudflare. I had similar issues, where the calendar looked funky and it didn't work well. Cache was the issue.

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


Powered by Kunena Forum