WordPress.org

Forums

WP-DB-Backup
Scheduled backup time setting and UTC (1 post)

  1. arrowd
    Member
    Posted 1 year ago #

    The Change option under Scheduled Backup setting doesn't take the GMT offset into account. You can see this by clicking the Change button, keeping the saved value and then clicking Save. You will see that the saved time is now earlier by whatever your offset is. To fix it, change line 653 as follows:
    from:
    $time = strtotime(strval($_POST['backup-time']));
    to:
    $time = strtotime(strval($_POST['backup-time'])) - (get_option('gmt_offset') * 3600);

    https://wordpress.org/plugins/wp-db-backup/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-DB-Backup
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags