Skip to content

Commit

Permalink
Merge pull request #46 from thinkshout/auto-import-timezone-fix
Browse files Browse the repository at this point in the history
Auto Import Timezone Fix
  • Loading branch information
jamacon36 authored May 19, 2023
2 parents 732ec5c + 031b255 commit 72407fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wp-otis.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Author URI: thinkshout.com
* Text Domain: wp-otis
* Domain Path: /languages
* Version: 1.1.15
* Version: 1.2.3.1
*
* @package Otis
*/
Expand Down Expand Up @@ -101,6 +101,8 @@ function wp_otis_acf_json_load_point( $paths ) {
$import_active = get_option( WP_OTIS_IMPORT_ACTIVE, false );

if ($import_active == false) {
// Set the timezone to LA for the duration of the import and get the current date.
date_default_timezone_set( 'America/Los_Angeles' );
$current_date = date( 'c' );
$last_import_date = get_option( WP_OTIS_LAST_IMPORT_DATE, '' );

Expand Down

0 comments on commit 72407fd

Please sign in to comment.