Home Discussions Questions & Answers How does Blitz Report handle timezones for date parameters?

How does Blitz Report handle timezones for date parameters?

Avatar photoCustomer February 6, 2023 at 11:13 pm

We have timezone conversions enabled on our EBS instance. How does Blitz Report handle input for a parameter defined as ‘Date’ type, compared to one defined as ‘DateTime’ type?

Viewing 6 reply threads
  • Author
    Replies
    • Support February 7, 2023 at 9:47 am  

      The Parameter Type definition controls this validation and conversion. For a Date parameter type, even if timezone conversions are enabled, the entered value is used as a bind for SQL execution without any conversion (using midnight of the date entered).

    • Avatar photoCustomer February 8, 2023 at 1:09 am  

      And for ‘DateTime’?

    • Support February 9, 2023 at 1:51 am  

      For a DateTime parameter type, which includes the timestamp, if timezone conversions are enabled, the entered parameter value will be converted to server time before being used as a bind for SQL execution.

    • Avatar photoCustomer February 10, 2023 at 11:51 am  

      Does the system check if the date entered is valid?

    • Support February 12, 2023 at 9:48 am  

      Yes, the parameter type definition specifically controls the validation of parameter values at run-time, ensuring the input matches the defined type (Char, Date, DateTime, Number, LOV types).

    • Avatar photoCustomer February 13, 2023 at 11:14 am  

      If I need to convert a date from the server timezone to the client timezone in a SQL query, is there a utility function?

    • Support February 15, 2023 at 1:22 am  

      Yes, you can use the custom database function `XXEN_UTIL.CLIENT_TIME (p_date in date)`. This function converts the date from the server’s timezone to the client’s local timezone if a difference is detected.

Viewing 6 reply threads
  • You must be logged in to reply to this post.

Login with: