WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. arrowd
    Member
    Posted 5 months 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/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags