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

Support archive

Strange Time Tag behaviour

Kaspar Allenbach 31 Aug 2012 14:49 problem, rejected

Hi.
I have this string:

{konzert_datum:start_date format="%j %M. %Y, %H:%i"}

Everything is nice, except for %H:%i which displayes my current Servertime???

But If I write:
{konzert_datum:start_date format="%j %M. %Y"}, {konzert_datum:start_time format="%H:%i"}

Everything is alright.

Strange thing I think.

I work on MAMP + PHP 5.4.4.

Replies

  1. Low 31 Aug 2012 15:05

    Might seem strange, but is intended. I recommend using start_date for dates only and start_time for times only.

    An event can be 'all day', which means it doesn't have a start or end time. Therefore, the start_date can be inconsistent. By splitting it in two, the start_time can return an empty string when all_day is enabled, keeping things consistent.

  2. Kaspar Allenbach 2 Nov 2012 14:56

    Hi. Stumbled right into the same error in the next project.

    This is how it Works:
    {gig_datum:start_date format="%d %M. %Y"} - {gig_datum:start_time format="%H:%i Uhr"}