All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Any date constants making use of %Q code don't correctly parse as format options

_KevinSmith 10 Nov 2014 20:12 problem, complete

One example is the {DATE_W3C} constant, used like so:

 
{exp:low_events:entries
channel="events"
dynamic="no"
limit="10000"
show_future_entries="yes"
show_passed="no"
}
{event-date-picker:start_date format="{DATE_W3C}"}
{/exp:low_events:entries}


It outputs:

2014-11-12T17:00:00%Q


It appears to just not be parsing the %Q correctly. This response to the bug report originally filed with EllisLab may be of some help.

Low Events v1.3.0
EE v2.9.2

Replies

  1. Low 10 Nov 2014 20:29

    Yeah, that's because LE can use different language packs, and so has to use its own format parsing.

    To fix, open up libraries/Low_date.php and look up line #472 (inside the ee_format() method). Below that, add a new line with this:

    $format = str_replace('%Q', '%P', $format);


    That should fix it.

  2. _KevinSmith 14 Nov 2014 16:24

    Yep, that took care of it. Thanks Low!