Keyword

K2 Extrafield Date Issue Multiple Date Format

  • Dmitry
  • Dmitry's Avatar Topic Author
  • Offline
  • New Member
More
6 years 9 months ago - 6 years 9 months ago #165670 by Dmitry
Hello, someone has encountered the problem of processing the additional Date field. If you select several dates in datepicker, K2 can not process them.
Example: i selekt 2017-12-04; 2017-12-05
I have issue: 0 - DateTime::__construct(): Failed to parse time string (2017-12-04; 2017-12-05) at position 10 (;): Unexpected character

Joomla 3.8
K2 2.8
Last edit: 6 years 9 months ago by Dmitry.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 9 months ago #165714 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 Extrafield Date Issue Multiple Date Format
Hello Dmitry,

Thank you for reporting this. Can you send me a screenshot of these fields (backeind)?

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

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

  • Dmitry
  • Dmitry's Avatar Topic Author
  • Offline
  • New Member
More
6 years 9 months ago #165717 by Dmitry
dropmefiles.com/QQVp2

look this screens

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

  • Dmitry
  • Dmitry's Avatar Topic Author
  • Offline
  • New Member
More
6 years 9 months ago #165719 by Dmitry
thanks for the answer, did not have time to thank for the possible help)))

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

  • Dmitry
  • Dmitry's Avatar Topic Author
  • Offline
  • New Member
More
6 years 9 months ago #165731 by Dmitry
K2 use flatpickr.min.js

if i set:
Flatpickr.defaultConfig = {
mode: "multiple",
position: "auto",
animate: -1 === window.navigator.userAgent.indexOf("MSIE"),
utc: !1,
wrap: !1,
weekNumbers: !1,
allowInput: !1,
clickOpens: !0,

I have this issue

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

  • Dmitry
  • Dmitry's Avatar Topic Author
  • Offline
  • New Member
More
6 years 9 months ago - 6 years 9 months ago #165816 by Dmitry
I saw that the error appears because of an unsupported character (;)
updating the flatpickr to the latest version, this error has disappeared and a new:
0 - DateTime::__construct(): Failed to parse time string (2017-12-14, 2017-12-15) at position 12 (2): Double date specification

https://imgur.com/a/OKp6e
Last edit: 6 years 9 months ago by Dmitry.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 9 months ago #165910 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 Extrafield Date Issue Multiple Date Format
Hello Dmitry and thank you for your feedback
You can track this issue's progress here: github.com/getk2/k2/issues/433

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

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

  • Dmitry
  • Dmitry's Avatar Topic Author
  • Offline
  • New Member
More
6 years 9 months ago #165925 by Dmitry
Thanks Krikor, i can track this issue. It is very unfortunate that for k2 there is no such addition as for zoo date pro

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 9 months ago #165955 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 Extrafield Date Issue Multiple Date Format
You can add this as a feature request :)
We are always happy to receive feedback from our users.

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