Home Discussions Questions & Answers Timezone Conversion Utility Functions

Timezone Conversion Utility Functions

Avatar photoCustomer February 23, 2025 at 3:39 am

We need to display dates in our custom report that are accurately converted to the client’s local timezone. Which `XXEN_UTIL` function handles this?

Viewing 4 reply threads
  • Author
    Replies
    • Support February 24, 2025 at 3:05 am  

      You should use the function `XXEN_UTIL.CLIENT_TIME(p_date in date)`. It takes a date in the server’s timezone and converts it to the client’s local timezone, provided the ‘Server Timezone’ and ‘Client Timezone’ profile options are set.

    • Avatar photoCustomer February 25, 2025 at 7:53 pm  

      And if I have a date entered by the user on the client side that I need to convert back to the server time for processing?

    • Support February 26, 2025 at 6:07 am  

      For the reverse operation, use `XXEN_UTIL.SERVER_TIME(p_date in date)`. This function converts a date from the client timezone back to the server timezone if a difference is detected.

    • Avatar photoCustomer February 26, 2025 at 4:26 pm  

      Does the conversion logic handle daylight savings time automatically?

    • Support February 27, 2025 at 5:48 am  

      The functions check for differences in time zones between the client and server based on the profile values and perform the conversion accordingly.

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

Login with: