Support Forums

Problem with presentation of Event time

  • Posts: 1 Topics: 1
    | Permalink

    Problem happens when we use letters for “Date and time separator” in plugin settings.
    In our case, we have “kl.” as a separator. PHP will detect “l” (lowercase L) character, and print full textual representation of the day of the week on frontend of the website. So, instead of “30. januar 2015 kl. 15:00 ” we see “30. januar 2015 kfredag. 15:00 “, where character “l” is replaced with textual representation of the day.

    “kl.” is a danish abbreviation. “Kl. 15:00” is Danish for “15:00 o’clock”.

    It only show if the event is over several days and start date therefor is different then end date.

    Posts: 1 Topics: 1
    | Permalink
    This reply has been marked as private.
    Posts: 17201 Topics: 11 Answers: 973
    | Permalink
    Correct Answer

    Hi!

    You can escape characters (mark them as ones you don’t want PHP to convert) using the backslash character:

    \K\l. H:i

    Should produce something like:

    Kl. 15:00

    Does that help?

    Posts: 17201 Topics: 11 Answers: 973
    | Permalink

    Hi! It’s been a while so I’m going to go ahead and close this thread. If we can help with anything else, though, please don’t hesitate to create new threads as needed. Thanks!

The topic ‘Problem with presentation of Event time’ is closed to new replies.