• Resolved doctechnical

    (@doctechnical)


    There doesn’t seem to be any way for me to set a specific time for the plugin to create it’s daily Google Shopping Feed, so I’m wondering if I can at least find out what time IT has decided it wants to run at. Is there something I should be looking for in wp-cron?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    Thanks for using our plugin and reaching out to us.

    These are the update times:

    • Daily: just after 07:00 local server time
    • Twicedaily:just after 07:00 and 19:00 local server time
    • Hourly: every hour
    Thread Starter doctechnical

    (@doctechnical)

    > Daily: just after 07:00 local server time

    Are you absolutely sure of that? The reason I ask is that I have an hourly cron job running on my server that scrapes the output directory and makes copies of any .xml files it finds to another directory, and I can tell with almost ontological certitude that the file was created between 01:40 and 02:40 local EST, as at 1:40 there was no file to scrape, and at 2:40 there was. So it seems far more likely the file was created at 02:00EST which would be 07:00UTC if I haven’t gotten something very wrong.

    Am I missing something?

    Yes are sure, this is some code directly from the plugin;

    
    $cron_start_date = date("d M Y H:i");
    $cron_start_time = time();
    $hour = date('H');
    
    if (($val['cron'] == "daily") AND ($hour == 07)){
     } elseif (($val['cron'] == "twicedaily") AND ($hour == 19 || $hour == 07)){
    

    The variable hour is using the PHP function date:
    https://www.php.net/manual/en/function.date.php

    date — Format a local time/date

    Hi,

    Assuming the issue at hand has been resolved and/or our support is no longer required I am going to close this topic for housekeeping reasons now.

    Should you ever require our help again, don’t hesitate to reach out or open a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to determine next plugin run time’ is closed to new replies.