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();
Fix for displaying local day
Line 2406
//$date = time();
$date = strtotime($attr_date);
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?