• FYI
    On public side when users view daily bible reading.
    Date displays different than local. Example Nov.1 Pacific Time US displays Nov. 2.
    Date jumps two days when right arrow clicked and doesn’t go back when left arrow clicked.

    Thank You and God Bless the work,
    Denis

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter denisbowen

    (@denisbowen)

    Fix for date changing correctly when Arrows clicked on public pages
    At line
    Line 2153
    Changed…
    function amdbible_date_form($date){
    $prev = date_i18n(“z”,$date);
    $next = date_i18n(“z”,$date)+2;
    ob_start();
    To…
    function amdbible_date_form($date){
    $prev = date_i18n(“z”,$date)-1;
    $next = date_i18n(“z”,$date)+1;
    ob_start();

    Thread Starter denisbowen

    (@denisbowen)

    Fix for displaying local day

    Line 2406
    //$date = time();
    $date = strtotime($attr_date);

    Thread Starter denisbowen

    (@denisbowen)

    Weird Action
    Problem, Problem, Fix, Fix, Problem, Fix

    When changed Line 2406 to
    $date = strtotime($attr_date);

    Had to change Line 2153 back to
    function amdbible_date_form($date){
    $prev = date_i18n(“z”,$date);
    $next = date_i18n(“z”,$date)+2;
    ob_start();

    When right button clicked was advancing 2 days and when left button clicked not advancing AND Displaying the GMT day and not local
    Fixed by changing code to -1 and +1 which worked.
    Fixed by changing code from time() to strtotime($attr_date).
    BUT
    Previous fix about buttons had to be removed and original code inserted.
    Seems to be working.
    Best scenario would be day based on User signed in.

    @denisbowen I tried your method and it didn’t work. Please help?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Date Not Working Correctly’ is closed to new replies.