• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Use of CRON to schedule reports.

    Scripting general Discussion
    2
    2
    1.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pascal
      last edited by

      Hi,

      I have used CRON to schedule report and noticed the following behavior :

      The CRON expression is evaluated towards UTC time, which is OK to me.

      The report itself is timestamped with UTC time instead of the User time and the timestamps included in the attached Excel file are also UTC ones.

      So, I wonder :

      1. If it is possible to adjust the timestamp to the User location ?
      2. What is the behavior of the CRON expression when DST (daylight saving time) adjustments apply

      Kind regards,

      Pascal

      1 Reply Last reply Reply Quote 0
      • Jared WiltshireJ
        Jared Wiltshire
        last edited by Jared Wiltshire

        @pascal are you talking about Excel reports?

        The cron expression should be evaluated against the server timezone AFAIK (it uses the timezone from the OS/JVM by default, you can override this in your env.properties file).
        Are you sure you don't have your server timezone set to UTC?

        @pascal said in Use of CRON to schedule reports.:

        What is the behavior of the CRON expression when DST (daylight saving time) adjustments apply

        Good question. Our cron code is based on the Quartz scheduling library v2.1.0, so this should help -
        http://www.quartz-scheduler.org/documentation/faq.html#FAQ-daylightSavings

        Of course if its actually evaluating the expressions as UTC time then there is no DST.

        Developer at Radix IoT

        1 Reply Last reply Reply Quote 0
        • First post
          Last post