• Resolved jasonczeng

    (@jasonczeng)


    When an article is pulled through Feedzy, it’s pulled in UTC time. That means that if my website is set to UTC-8, all posts are scheduled 8 hours in the future and are not immediately published.

    I solved this problem, by setting my website to UTC time, which then publishes the article as they come, but then my website has the wrong date 1/3 of the day. Anytime after 4PM it’s the the wrong date (1 day ahead)

    I need a way to adjust the time of the article that is pulled to be consistent with my timezone UTC-8. Ideally, I just want to take item post time and subtract 8 hours from it, or something similar.

    View post on imgur.com

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Stefan Cotitosu

    (@stefancotitosu)

    Hi @jasonczeng,

    Thank you for using Feedzy.

    The plugin doesn’t allow such parameters in the input field for magic tags such as -8. You can try to change the [#item_date] magic tag with the [#post_date] and the items should be imported in place.

    I hope this will help.

    Thread Starter jasonczeng

    (@jasonczeng)

    You misunderstood my issue.

    The articles are getting pulled in, I have no issues with that, but they are getting pulled in and scheduled with a publish date 8 hours ahead.

    For example, it’s 10AM PST now, If I pull an article now that was just posted on a website, it’s set to 6PM (UTC) PST=UTC-8.

    However, because my website is in PST, that post is scheduled to publish 8 hours in the future, at 6PM PST, instead of immediately.

    Plugin Support Vytis

    (@bvytis)

    Hi @jasonczeng,

    Thank you for sharing more details.

    Here is a code that should work for your case:

    function fz_update_post_status( $post_id, $post, $update ) { if ( $update ) { return; } if ( ! doing_filter( 'wp_ajax_feedzy' ) ) { return; } if ( 'publish' !== $post->post_status ) { wp_publish_post( $post ); } } add_action( 'wp_insert_post', 'fz_update_post_status', 10, 3 );

    Feel free to try it and let us know if you still face issues with using it.

    • This reply was modified 1 year, 8 months ago by Vytis.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Articles pulled are on UTC Time’ is closed to new replies.