0

I have a system cron that run every 15 minutes that invoke the magento cron.sh. Inside the magento module config.xml, I setup crontab to run at 1 am

<crontab>
    <jobs>
        <catalogrule_apply_all>
            <schedule>
                <cron_expr>0 1 * * *</cron_expr>
            </schedule>
            <run>
                <model>catalogrule/observer::dailyCatalogUpdate</model>
            </run>
        </catalogrule_apply_all>
    </jobs>
    <events>
        <catalog_product_get_final_price>
            <observers>
                <catalogrule>
                    <class>catalogrule/observer</class>
                    <method>processAdminFinalPrice</method>
                </catalogrule>
            </observers>
        </catalog_product_get_final_price>
    </events>
</crontab>

Is this 1 AM the local time or the UTC time? because I think magento is using UTC time only when store data into db.

1

It should be server time. Use "date" to check the server time and timezone.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.