Plugin Directory

Changeset 3364534


Ignore:
Timestamp:
09/19/2025 12:29:13 PM (6 months ago)
Author:
sflwa
Message:

Fixed Timezone Offset Issue - switched to wp_timezone() instead of GMT Offset

Location:
shortcode-for-mobilizeamerica-api
Files:
11 added
3 edited

Legend:

Unmodified
Added
Removed
  • shortcode-for-mobilizeamerica-api/trunk/readme.txt

    r3340482 r3364534  
    44Requires at least: 6.7
    55Tested up to: 6.8
    6 Stable tag: 1.0.12
     6Stable tag: 1.0.11
    77Requires PHP: 8.0
    88License: GPLv2 or later
     
    9090
    9191## Change Log
     922025-09-19 v 1.0.13
     93* Fixed Timezone issue for time display - uses WP Timezone vs GMT offset - this was only an issue when a future event was after the Daylight Savings Time Switch
     94
    92952025-08-06 v1.0.12
    9396* Added Let us know you've installed plugin alert
  • shortcode-for-mobilizeamerica-api/trunk/shortcode-for-mobilizeamerica-api.php

    r3340482 r3364534  
    33 * Plugin Name: Shortcode for MobilizeAmerica API
    44 * Description: Displays events from Mobilize America on your WordPress site.
    5  * Version:     1.0.12
     5 * Version:     1.0.13
    66 * Author:      South Florida Web Advisors
    77 * Author URI:  https://sflwa.net
     
    99 * Requires at least: 6.7
    1010 * Tested up to: 6.8
    11  * Stable tag: 1.0.12
     11 * Stable tag: 1.0.13
    1212 * Text Domain: shortcode-for-mobilizeamerica-api
    1313 */
  • shortcode-for-mobilizeamerica-api/trunk/templates/event-templates.php

    r3296486 r3364534  
    5252        // Format the timeslot start date and time.
    5353        $event_start_datetime = New DateTime("@".$event['timeslots'][0]['start_date']);
    54         $event_start_datetime->setTimeZone(new DateTimeZone(get_option('gmt_offset')));
     54        $event_start_datetime->setTimeZone(wp_timezone());
    5555        $event_end_datetime = New DateTime("@".$event['timeslots'][0]['end_date']);
    56         $event_end_datetime->setTimeZone(new DateTimeZone(get_option('gmt_offset')));
     56        $event_end_datetime->setTimeZone(wp_timezone());
    5757        $event_duration = strtotime($event_end_datetime->format('m/d/Y g:i A')) - strtotime($event_start_datetime->format('m/d/Y g:i A'));
    5858
     
    105105            // Format the timeslot start date and time.
    106106            $event_start_datetime = New DateTime("@".$event['timeslots'][0]['start_date']);
    107         $event_start_datetime->setTimeZone(new DateTimeZone(get_option('gmt_offset')));
     107        $event_start_datetime->setTimeZone(wp_timezone());
    108108        $event_end_datetime = New DateTime("@".$event['timeslots'][0]['end_date']);
    109         $event_end_datetime->setTimeZone(new DateTimeZone(get_option('gmt_offset')));
     109        $event_end_datetime->setTimeZone(wp_timezone());
    110110        $event_duration = strtotime($event_end_datetime->format('m/d/Y g:i A')) - strtotime($event_start_datetime->format('m/d/Y g:i A'));
    111111
Note: See TracChangeset for help on using the changeset viewer.