Support » Plugin: Page View Count » Change time when views per day is reset?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I need this answer too. My number of views resets itself in the afternoon instead of at midnight. I would really like to have this issue solved.

    Thank you for your time and effort to help.
    Leesa
    http://www.twitterpersians.com

    Has anyone received a response to this?

    I never heard back anything on this but I added a patch that seems to have fixed the problem for me. In the plugin init function I added the date_default_timezone_set call as below. The actual zone should be set to your local time setting:

    function a3_pvc_plugin_init() {
    	if ( get_option('pvc_just_installed') ) {
    		delete_option('pvc_just_installed');
    		wp_redirect( admin_url( 'options-general.php?page=a3-pvc', 'relative' ) );
    		exit;
    	}
    	// Add language
    	load_plugin_textdomain( 'pvc', false, A3_PVC_FOLDER.'/languages' );
    	date_default_timezone_set('America/New_York');	//RS
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change time when views per day is reset?’ is closed to new replies.