Viewing 6 replies - 1 through 6 (of 6 total)
  • Since the last update I have the same problem. The problem is the date/time format. In my case the button do not accept the german format (hh:mm). It only accept the following format hh:mma. For example: 10:23am or 11:23pm. Then you can add an event. In the frontend the normal time is displayed. So, the problem is not fixed, but it is one way to finish the event.

    Thread Starter derpetersen

    (@derpetersen)

    Thank you. This works for me.

    Plugin Author loushou

    (@loushou)

    Hey @derpetersen & @skoda007,

    Thanks for laying the groundwork on this. I will look into a good solution for this, because obviously, we want it to work for most common formats. Knowing that you can work around the problem by adding the meridian helps me understand what the actual problem is, so now it is just a matter of figuring out a good solution. I will update you here when there is something to report.

    Loushou

    Hi @loushou,

    any news on this topic? I also try to figure out, if OpenTickets might be the solution i waited for, but i am hindered by this format problem.

    Can it be solved in the language file? I almost drove crazy, as i found date format settings in that file ??

    cheers – hothey

    in case it helps:
    the error is a TypeError thrown in Line 99 in event-ui.js

    if in the start-time or end-time is no “am” or “pm”, var matches[6] is undefined. Calling .toLowerCase() on undefined var causes the TypeError.

    changing line 99 to
    res = matches ? { hour:qt.toInt( matches[1] ), min:qt.toInt( matches[3] ), sec:qt.toInt( matches[5] ), mer:matches[6]?matches[6].toLowerCase().substr( 0, 1 ):'' } : { hour:0, min:0, sec:0, mer:'' };
    solves the topic.

    cheers – hothey
    coachassistant.de

    Plugin Author loushou

    (@loushou)

    Hey @hothey and @derpetersen,

    We made a change in version 2.2.2 which resolves this issue. Essentially, it allows any date format to work, English, German or otherwise. Thanks for your patience on this, and thanks for putting extra time into it.

    Loushou

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add to Calendar button doesnt work’ is closed to new replies.