Viewing 15 replies - 1 through 15 (of 53 total)
  • Plugin Author Allen

    (@amweiss98)

    did you go into the plugin admin page for the feed to post, and set the time to Los Angeles, and then tell the plugin to use that time? See this FAQ

    https://www.wprssimporter.com/faqs/my-posts-are-showing-up-with-the-wrong-time/

    Thread Starter Army

    (@wavesinair)

    Well I saw this FAQ but didn’t bother because I’m only using the shortcode. I’m not feeding to post anything. It isn’t activated.

    Plugin Author Allen

    (@amweiss98)

    ok..I’ll look into this.. I can see the la times doesn’t put their RSS feed time into a format that is general (usually an offset of GMT)…that may be one problem.

    Plugin Author Allen

    (@amweiss98)

    Ok..try this, take this file and replace it for the main plugin file

    https://www.dropbox.com/s/l544e1ad5a23zi4/wp-rss-multi-importer.php

    let me know if this solves your problem or not.

    Thread Starter Army

    (@wavesinair)

    Hi Allen, thanks for taking the time. I replaced the file last night and monitored it. The dates are going back and forth. One moment they are all correct, then the next they jump back to the way it was before. For example, all the incorrect Sun, Jun 01, 2014 feeds changed to Sat, May 31, 2014. Then, a little while later, all the correct Sat, May 31, 2014 dates changed back to Sun, Jun 01, 2014. I confirmed this with multiple browsers, clearing the cache as well as checking multiple devices. There were no exceptions with regards to particular feeds.

    Thread Starter Army

    (@wavesinair)

    Plugin Author Allen

    (@amweiss98)

    ok..well, here’s the deal….the file I gave you is now getting the timezone from your wordpress settings..so maybe something odd is going on with your server. You can go into the file I gave you and look for these lines:

    //date_default_timezone_set('America/Los_Angeles');  
    
    date_default_timezone_set( get_option( 'timezone_string' ) );

    and change it to this:

    date_default_timezone_set('America/Los_Angeles');  
    
    //date_default_timezone_set( get_option( 'timezone_string' ) );

    that will hard code Los Angeles..see if that helps

    Thread Starter Army

    (@wavesinair)

    Changed the file as directed to the following:

    date_default_timezone_set(‘America/Los_Angeles’); ///NEED TO ADD THIS

    //date_default_timezone_set( get_option( ‘timezone_string’ ) ); ///THIS SHOULD WORK

    Currently monitoring, but as of the change, the incorrect dates are showing.

    Thread Starter Army

    (@wavesinair)

    Just jumped back to correct dates…

    Thread Starter Army

    (@wavesinair)

    Now back to the incorrect dates…

    Plugin Author Allen

    (@amweiss98)

    well, I’m not sure what the problem is since by setting this as you have it, your server is supposed to provide the correct date and time. I put the latimes RSS feed on my server which is here:

    https://www.wprssimporter.com/shortcode/

    and this seems to work fine (I changed the code so you could see the time as well as the date).

    I’ll keep watching my server (which is on hostgator) to see if anything changes.

    One final thing, try using this file, which puts the default time change at the top of the shortcode call…maybe this will help

    https://www.dropbox.com/s/l544e1ad5a23zi4/wp-rss-multi-importer.php

    Plugin Author Allen

    (@amweiss98)

    ok..I’ve done a bit of searching and it’s possible the problem is with your php.ini file, that might be set for a different time zone, or your wordpress config file is set for a different time zone.

    Thread Starter Army

    (@wavesinair)

    I was thinking the same thing. The php.ini file is set to America/Los_Angeles but the wp_config.php file doesn’t have anything in it related to time or date. The wp_settings.php file does have itself set to UTC but I’ve read that you should never change it in that file as wordpress works off of it in many ways.

    I’ve been comparing your test with mine and mine still keeps jumping back and forth. I haven’t yet seen yours change to the incorrect date. Frustrating. Thank you for taking the time to try.

    Thread Starter Army

    (@wavesinair)

    It’s so strange now. I set up a test page on the main wordpress multisite and it is changing dates with each and every refresh. June 01 to June 02, over and over.

    https://pucknewsdaily.com/testrss/

    Kings Fan Daily is now doing the same thing. I’m wondering if it has anything to do with the shortcode settings. Could you confirm what your test page settings are?

    But I don’t think it does as I have changed them to various settings with the same result. I guess it could be a plugin conflict. I’ve disabled a bunch but maybe I have to disable them all. Not sure. I do have Hostgator looking into the issue to see if it’s something on their end. I’m wondering if it’s a multisite issue too so I’m going to install the plugin on yet another site on my shared server that isn’t part of the multisite install.

    Thread Starter Army

    (@wavesinair)

    Ok, I added the plugin to my old site that is not part of the multisite install, but is on the same shared server, and I added this test page.

    https://deepinsidethekings.com/testrss/

    It is consistently showing yesterday’s incorrect dates. No changing. Also of note, this is the default install of the plugin and NOT the modified file you sent me. I’m thinking this might be evidence it is server related and not plugin related? I bet if I overwrite the wp-rss-multi-importer.php to match the one on kings fan daily, it will jump back and forth.

    UPDATE: And that’s exactly what happened. The Plugin is trying to change the date to the correct one but something is forcing it back to the incorrect one. I replaced the wp-rss-multi-importer.php back to the original and it is again not jumping back and forth. Just showing the wrong date.

Viewing 15 replies - 1 through 15 (of 53 total)
  • The topic ‘Date – Time Zone Is Off’ is closed to new replies.