WordPress.org

Support

Support » Plugins and Hacks » [Resolved] 12:00 AM end time on old posts

[Resolved] 12:00 AM end time on old posts

Viewing 4 replies - 1 through 4 (of 4 total)
  • renowden
    Participant

    @renowden

    I have hacked around it for the time being by using %STARTTIME% instead of %TIME% in rs_event_post() in my theme files. It doesn’t seem to be a problem in rs_event_list().

    I would guess that the problem relates to the code around $fake_secondend but I haven’t figured out how this works yet.

    Plugin Author wp-lefty
    Member

    @wp-lefty

    Are you sure, that the problem occurs just with rs_event_post() and definitely not with rs_event_list()?
    If this is the case, it would be good news, because now I can localize the bug. It is on line 914.
    Please change the code as followed:

    before (with bug):

    $fake_secondend = mysql2date('s', gmdate('Y-m-d H:i:s', $ts_p_endtime));

    new (bugfix):

    $fake_secondend = $ts_p_endtime ? mysql2date('s', gmdate('Y-m-d H:i:s', $ts_p_endtime)) : 58;

    And please let me know, if your problem is solved, so I can add that bugfix to version 1.3.2

    Btw: The $fake_second and the “fake_sencondend just help to store or identify the information, if a starttime and/or endtime is entered or not.

    renowden
    Participant

    @renowden

    Great Florian, that seems to have fixed it.

    I figured that’s what the “fakes’ were doing – a few comments in the code saying how it works could be useful for future maintenance.

    Plugin Author wp-lefty
    Member

    @wp-lefty

    resolved

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] 12:00 AM end time on old posts’ is closed to new replies.